/**
 * OA 管理后台登录页
 */
:root {
  --oa-login-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --oa-login-ink: #0f172a;
  --oa-login-muted: #64748b;
  --oa-login-accent: #1668dc;
  --oa-login-accent-hover: #1256b8;
  --oa-login-line: rgba(15, 23, 42, 0.1);
}

html.oa-login-page,
body.oa-login-page {
  height: 100%;
  margin: 0;
}

body.oa-login-page {
  font-family: var(--oa-login-font);
  -webkit-font-smoothing: antialiased;
  color: #334155;
  background-color: #64748b;
  background-image:
    radial-gradient(ellipse 100% 80% at 10% -20%, rgba(22, 104, 220, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(30, 64, 175, 0.22), transparent 50%),
    linear-gradient(160deg, #e2e8f0 0%, #94a3b8 48%, #64748b 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 72px;
  box-sizing: border-box;
}

.oa-login-shell {
  width: 100%;
  max-width: 920px;
}

.oa-login-card {
  display: flex;
  align-items: stretch;
  min-height: 480px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 28px 64px -20px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.oa-login-brand {
  flex: 0 0 42%;
  min-width: 0;
  padding: 40px 36px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.15) 0%, transparent 50%),
    linear-gradient(160deg, #1668dc 0%, #0ea5e9 45%, #1e40af 100%);
  position: relative;
}

.oa-login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.oa-login-brand__inner {
  position: relative;
  z-index: 1;
}

.oa-login-brand__badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 20px;
}

.oa-login-brand__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.oa-login-brand__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 280px;
}

.oa-login-brand__features {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.oa-login-brand__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.oa-login-brand__features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.oa-login-form-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 44px 36px;
}

.oa-login-form-head {
  text-align: center;
  margin-bottom: 28px;
}

.oa-login-form-head img {
  height: auto;
  max-height: 108px;
  max-width: 240px;
  object-fit: contain;
}

.oa-login-form-head__title {
  margin: 14px 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--oa-login-ink);
}

.oa-login-form-head__sub {
  margin: 0;
  font-size: 13px;
  color: var(--oa-login-muted);
}

.oa-login-form .layui-form-item {
  margin-bottom: 16px;
}

.oa-login-form .layui-input {
  height: 46px;
  line-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--oa-login-line);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.oa-login-form .layui-input:focus {
  border-color: var(--oa-login-accent);
  box-shadow: 0 0 0 3px rgba(22, 104, 220, 0.12);
}

.oa-login-form .layui-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

.oa-login-captcha {
  display: flex;
  gap: 10px;
  align-items: center;
}

.oa-login-captcha.layui-form-item::after {
  display: none;
}

.oa-login-captcha .layui-input-inline {
  margin: 0 !important;
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
}

.oa-login-captcha .captcha_img {
  flex: 0 0 auto;
  height: 46px;
  line-height: 0;
  border-radius: 10px;
  border: 1px solid var(--oa-login-line);
  background: #f8fafc;
  cursor: pointer;
}

.oa-login-captcha .captcha_img img {
  width: auto;
  height: 46px;
  max-width: none;
  display: block;
  border-radius: 9px;
}

.oa-login-submit {
  height: 46px !important;
  line-height: 46px !important;
  margin-top: 8px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, #1668dc 0%, #0ea5e9 100%) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(22, 104, 220, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}

.oa-login-submit:hover {
  background: linear-gradient(135deg, var(--oa-login-accent-hover) 0%, #0284c7 100%) !important;
  box-shadow: 0 6px 18px rgba(22, 104, 220, 0.4);
}

.oa-login-oauth {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #eef2f6;
  text-align: center;
}

.oa-login-oauth__label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.oa-login-oauth__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.oauth-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.oauth-chip:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

.oauth-chip--wechat {
  background: linear-gradient(145deg, #07c160, #059c4c) !important;
}

.oauth-chip--wecom {
  background: linear-gradient(145deg, #0082ef, #005fb3) !important;
}

.oauth-chip__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.oa-login-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.92);
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.oa-login-foot a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.oa-login-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .oa-login-card {
    flex-direction: column;
    min-height: 0;
  }

  .oa-login-brand {
    flex: none;
    padding: 28px 24px;
  }

  .oa-login-brand__title {
    font-size: 22px;
  }

  .oa-login-brand__features {
    display: none;
  }

  .oa-login-form-wrap {
    padding: 28px 24px 32px;
  }
}
