@import url("style.css");

/* 统一登录 */
body.auth { background: var(--bg); margin: 0; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }

.auth-aside {
  position: relative; overflow: hidden; color: #fff; padding: 48px 56px;
  background:
    radial-gradient(640px 420px at 88% -6%, rgba(29, 71, 207, .5) 0%, rgba(29, 71, 207, 0) 60%),
    linear-gradient(165deg, var(--banner) 0%, var(--navy) 58%, #10306c 130%);
  display: flex; flex-direction: column;
}
.auth-aside .glow1, .auth-aside .glow2 {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
}
.auth-aside .glow1 { width: 520px; height: 520px; right: -180px; top: -160px; }
.auth-aside .glow2 { width: 380px; height: 380px; left: -120px; bottom: -160px; opacity: .6; }
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; }
.auth-brand .brand-mark { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; }
.auth-brand b { font-size: 18px; letter-spacing: -.01em; }
.auth-brand span { font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .16em; text-transform: uppercase; display: block; }

.auth-hero { margin-top: auto; position: relative; }
.auth-hero h1 { color: #fff; font-size: 40px; line-height: 1.28; letter-spacing: -.03em; }
.auth-hero p { margin-top: 16px; font-size: 14.5px; color: rgba(255,255,255,.75); max-width: 420px; line-height: 1.8; }
.auth-points { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; }
.auth-point .p-ic {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
}
.auth-point b { display: block; font-size: 13.5px; }
.auth-point span { font-size: 12.5px; color: rgba(255,255,255,.62); }
.auth-foot { margin-top: 40px; font-size: 12px; color: rgba(255,255,255,.45); position: relative; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: min(420px, 100%); }
.auth-card h2 { font-size: 26px; letter-spacing: -.02em; }
.auth-card .sub { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.role-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 24px 0 18px; }
  .role-tab {
  border: 1px solid var(--line-strong); background: #fff; border-radius: 12px; padding: 10px 4px;
  font-size: 13px; color: var(--slate-600); cursor: pointer; transition: .16s; text-align: center;
}
.role-tab b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 2px; }
.role-tab span { font-size: 11px; color: var(--muted); }
.role-tab:hover { border-color: var(--blue-200); }
.role-tab.on { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(58, 112, 200, .12); }
.role-tab.on b { color: var(--blue-700); }

.method-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.method-tab { border: 0; background: none; padding: 0 0 10px; font-size: 13.5px; color: var(--muted); cursor: pointer; position: relative; }
.method-tab.on { color: var(--ink); font-weight: 600; }
.method-tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue-600); border-radius: 2px; }

.auth-form .field { margin-bottom: 14px; }
.auth-form .field label { font-size: 12.5px; }
.auth-form .field input { height: 44px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row .btn { height: 44px; flex: none; }
.auth-submit { width: 100%; height: 46px; margin-top: 6px; }
.auth-links { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.auth-links a { color: var(--blue-700); }
.auth-err { min-height: 18px; font-size: 12px; color: #dc2626; margin: 4px 0 6px; }

@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { padding: 28px 24px 32px; }
  .auth-hero { margin-top: 26px; }
  .auth-hero h1 { font-size: 27px; }
  .auth-points { display: none; }
  .auth-foot { display: none; }
  .auth-main { padding: 28px 20px 48px; }
  .auth-card h2 { font-size: 22px; }
}
