.auth { min-height: 100vh; background: var(--haze-100); overflow-x: hidden; }
.scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.veil { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(27,31,42,0) 30%, rgba(27,31,42,.55) 70%); }
.auth-top { position: relative; z-index: 5; padding: 22px clamp(16px, 4vw, 48px); }
.auth-top .brand { text-decoration: none; font-size: 12px; letter-spacing: .14em; color: var(--text-soft); }
.auth-top .brand span { color: var(--text-mute); padding: 0 6px; }
.auth-top .brand:hover { color: var(--text); }

.auth-layout {
  position: relative; z-index: 5;
  min-height: calc(100vh - 70px);
  display: grid; grid-template-columns: 1fr minmax(320px, 440px); align-items: center; gap: clamp(24px, 6vw, 96px);
  padding: 24px clamp(16px, 5vw, 80px) 48px;
}
.auth-copy { align-self: end; padding-bottom: 12vh; max-width: 520px; }
.auth-copy h1 { font-size: clamp(34px, 4.2vw, 58px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.05; margin: 12px 0 18px; }
.auth-copy .ar { font-family: var(--font-arabic); font-size: .8em; color: var(--haze-50); opacity: .8; letter-spacing: 0; }
.auth-copy p { color: var(--text-soft); font-size: 17px; margin: 0; }
.auth.forced .optional-only, .auth:not(.forced) .forced-only { display: none; }

.card {
  position: relative;
  padding: 30px 30px 24px;
  border-radius: var(--radius-l);
  background: linear-gradient(165deg, rgba(58,64,78,.72) 0%, rgba(35,40,54,.82) 100%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(243,237,226,.08);
  backdrop-filter: blur(18px) saturate(120%);
  animation: card-in 1s var(--ease) both;
}
.card::before {
  content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--haze-50), transparent);
}
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.card-head { display: flex; justify-content: space-between; align-items: center; }
.small-chip { font-size: 11px; padding: 4px 11px; }
.card h2 { font-size: 30px; font-weight: 400; letter-spacing: -0.02em; margin: 16px 0 22px; }
.stack { display: grid; gap: 18px; }
.btn.wide { width: 100%; padding: 14px; margin-top: 4px; }
.form-error { margin: 0; min-height: 0; color: var(--alert); font-size: 14px; }
.form-error:empty { display: none; }
.card.has-error { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.caps-hint { margin: 0; font-size: 12px; color: var(--warn); }
.note { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; font-size: 11px; letter-spacing: .06em; color: var(--text-mute); text-transform: uppercase; }
.note svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.meter { height: 4px; border-radius: 4px; background: rgba(226,216,199,.1); overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--score, 0) * 25%); background: var(--alert); transition: width .3s var(--ease), background .3s; }
.meter i[data-score="2"] { background: var(--warn); }
.meter i[data-score="3"], .meter i[data-score="4"] { background: var(--ok); }
.rules { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 11.5px; color: var(--text-mute); }
.rules li::before { content: "○ "; }
.rules li.ok { color: var(--ok); }
.rules li.ok::before { content: "● "; }

@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; align-items: start; }
  .auth-copy { padding-bottom: 0; align-self: start; }
  .veil { background: rgba(27,31,42,.45); }
  .rules { grid-template-columns: 1fr; }
}
