/* Meridian — sign in */
.auth-grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-art {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px;
  border-right: 1px solid var(--line); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(600px 400px at 70% 45%, rgba(226, 192, 125, .12), transparent 70%),
    radial-gradient(500px 400px at 20% 90%, rgba(70, 110, 200, .08), transparent 70%),
    var(--bg-2);
}
.art-orbit { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; }
.art-orbit svg { width: min(560px, 80%); animation: spin 120s linear infinite; }
.art-orbit .ring { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.art-orbit .meridian { stroke: rgba(226, 192, 125, .16); }
.art-orbit .trend { fill: none; stroke: url(#ag); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3s .3s var(--ease) forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.auth-art blockquote { margin: 0; max-width: 440px; }
.auth-art blockquote p { font-family: var(--f-display); font-size: 30px; line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.01em; }
.auth-art blockquote span { font-size: 13px; color: var(--muted); }

.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(400px, 100%); }
.mobile-brand { display: none; margin-bottom: 36px; }
.auth-card h1 { font-family: var(--f-display); font-weight: 400; font-size: 42px; letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
.sub { color: var(--muted); margin: 12px 0 32px; font-size: 14.5px; }
#loginForm { display: grid; gap: 20px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp .input { text-align: center; font-size: 18px; padding: 0; height: 52px; }
.hint.auto { margin: 0; font-size: 12.5px; color: var(--muted); padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.w-full { width: 100%; }
.form-error { padding: 11px 14px; border-radius: var(--r); background: var(--down-bg); border: 1px solid rgba(255, 93, 110, .3); color: #ffb3bb; font-size: 13px; }
.notice { padding: 11px 14px; border-radius: var(--r); background: rgba(245, 180, 71, .1); border: 1px solid rgba(245, 180, 71, .28); color: #ffd99a; font-size: 13px; margin-bottom: 20px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--dim); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.fine { text-align: center; color: var(--dim); font-size: 12px; margin: 12px 0 0; }

.notice.ok { background: var(--up-bg); border-color: rgba(47, 212, 156, .3); color: #a7f0d6; }
.pw { position: relative; }
.pw .input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; }
.pw-toggle:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.meter { height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; transition: width .25s var(--ease), background .25s; }
.switch { text-align: center; color: var(--muted); font-size: 13.5px; margin: 24px 0 0; }
.switch a, .fine a { color: var(--gold-2); font-weight: 500; }
.switch a:hover, .fine a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 3-step flow indicator (shared with connect.php) */
.flow { list-style: none; display: flex; gap: 6px; margin: 0 0 28px; padding: 0; font-size: 12px; color: var(--dim); flex-wrap: wrap; }
.flow li { display: flex; align-items: center; gap: 7px; }
.flow li:not(:last-child)::after { content: ""; width: 18px; height: 1px; background: var(--line-2); margin-left: 4px; }
.flow span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font: 600 10.5px var(--f-mono); }
.flow .now { color: var(--text); }
.flow .now span { border-color: var(--gold); color: var(--gold-2); background: rgba(226, 192, 125, .1); }
.flow .done { color: var(--text-2); }
.flow .done span { background: var(--up-bg); border-color: rgba(47, 212, 156, .35); color: var(--up); }

@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .mobile-brand { display: inline-flex; }
  .auth-panel { place-items: start center; padding-top: 48px; }
}
