/* Auth pages — sign in / register. Reuses the SovereignSourced dark theme. */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.auth-aside {
  position: relative;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(700px 420px at 20% 10%, rgba(74,222,128,0.10), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--bg));
  overflow: hidden;
}
.auth-aside__brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.auth-aside__pitch { max-width: 420px; }
.auth-aside__pitch h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 800; }
.auth-aside__pitch p { color: var(--muted); font-size: 16px; margin: 0 0 26px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 14.5px; }
.auth-points svg { flex: 0 0 auto; color: var(--green); margin-top: 1px; }
.auth-aside__foot { color: var(--muted-2); font-size: 13px; }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
}
.auth-card__back { color: var(--muted); text-decoration: none; font-size: 13.5px; display: inline-flex; gap: 6px; margin-bottom: 22px; }
.auth-card__back:hover { color: var(--green); }
.auth-card h1 { font-size: 27px; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth-card__sub { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; }
.auth-card__sub b { color: var(--text); font-weight: 600; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-size: 15px; padding: 12px 14px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--green-dim); box-shadow: 0 0 0 3px rgba(74,222,128,0.14); }
.field input::placeholder { color: var(--muted-2); }
.field__hint { color: var(--muted-2); font-size: 12px; margin-top: 6px; }
.field--pw { position: relative; }
.field__toggle {
  position: absolute; right: 6px; top: 31px; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 12px; padding: 6px 8px; font-weight: 600;
}
.field__toggle:hover { color: var(--green); }

/* OTP boxes */
.otp { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 8px; }
.otp input {
  width: 100%; aspect-ratio: 1 / 1; text-align: center; font-size: 22px; font-weight: 700;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.otp input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(74,222,128,0.16); }

.btn--block { width: 100%; justify-content: center; padding: 13px; font-size: 15px; margin-top: 6px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

.auth-msg { font-size: 13.5px; padding: 11px 13px; border-radius: 10px; margin-bottom: 16px; display: none; }
.auth-msg.show { display: block; }
.auth-msg--error { background: rgba(248,113,113,0.10); border: 1px solid rgba(248,113,113,0.35); color: #fca5a5; }
.auth-msg--ok { background: rgba(74,222,128,0.10); border: 1px solid var(--green-dim); color: var(--green); }

.auth-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.auth-alt a { color: var(--green); text-decoration: none; font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }
.auth-resend { background: none; border: 0; color: var(--green); cursor: pointer; font-weight: 600; font-size: 13.5px; font-family: inherit; padding: 0; }
.auth-resend[disabled] { color: var(--muted-2); cursor: default; }

.step { display: none; }
.step.active { display: block; animation: stepin .35s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 880px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .step.active { animation: none; }
}
