/* ==========================================================================
   TafsirKurd 2.0 — login.html. ONLY the look is new: every class and id the
   sign-in script (copied byte-for-byte from src/login.html at build time)
   depends on is styled here — .form-section(.active/.fading-out), .tab order,
   .auth-button(.loading) .spinner, .password-toggle-btn i, .otp-input,
   .message.{success|error|info}, .success-overlay.visible, strength classes.
   The animated particle canvas is intentionally absent (the script skips it
   when #animatedBg is missing) — an infinite rAF loop is banned on low-end phones.
   ========================================================================== */
body.tkx { min-height: 100dvh; padding-bottom: 0; position: relative; isolation: isolate;
  background: radial-gradient(60rem 40rem at 85% -10%, rgba(26, 92, 58, .10), transparent 60%),
              radial-gradient(50rem 36rem at -10% 110%, rgba(216, 181, 106, .16), transparent 60%), var(--cream); }
/* faint eight-point star lattice behind everything (static, one layer) */
body.tkx::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%231A5C3A' stroke-opacity='.07'%3E%3Cpath d='M48 20l8 20 20 8-20 8-8 20-8-20-20-8 20-8z'/%3E%3Crect x='34' y='34' width='28' height='28' transform='rotate(45 48 48)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
:root[data-theme="sakina"] body.tkx { background: radial-gradient(60rem 40rem at 85% -10%, rgba(111, 176, 140, .10), transparent 60%),
  radial-gradient(50rem 36rem at -10% 110%, rgba(216, 181, 106, .08), transparent 60%), var(--cream); }
.tkx-bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.top-back-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease), transform var(--d1) var(--ease); }
.top-back-btn:hover { color: var(--green); transform: translateX(2px); }

.login-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s7); align-items: stretch; min-height: calc(100dvh - 72px - 32px); padding-bottom: var(--s6); }

/* the panel beside the form: the admin-chosen image (set by the script) under a deep green wash, brand + perks */
.hero-panel { position: relative; display: flex; align-items: flex-end; min-height: 560px; border-radius: 32px; overflow: hidden; isolation: isolate;
  background-color: #0E1A14; background-size: cover; background-position: center; color: #F4E8CC; box-shadow: 0 40px 80px -40px rgba(8, 20, 14, .7); }
.hero-panel::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 100% 0%, rgba(216, 181, 106, .20), transparent 55%),
              linear-gradient(0deg, rgba(10, 22, 15, .97) 0%, rgba(14, 38, 25, .88) 45%, rgba(14, 38, 25, .55) 100%); }
.hero-panel::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23F4E8CC' stroke-opacity='.07'%3E%3Cpath d='M48 20l8 20 20 8-20 8-8 20-8-20-20-8 20-8z'/%3E%3Crect x='34' y='34' width='28' height='28' transform='rotate(45 48 48)'/%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; padding: var(--s7); width: 100%; }
.hero-mark { display: block; width: 72px; height: 72px; border-radius: 18px; margin-bottom: var(--s5); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6), 0 0 0 1px rgba(244, 232, 204, .14); }
.hero-title { margin: 0; font: 800 clamp(2rem, 2.4vw + 1rem, 3.2rem)/1.2 var(--f-ui); color: #FBF3DD; text-wrap: balance; }
.hero-subtitle { margin: var(--s3) 0 0; font-size: var(--t-lg); line-height: 1.8; color: #D7CDB4; max-width: 30rem; }
.hero-perks { list-style: none; margin: var(--s6) 0 0; padding: var(--s5) 0 0; display: grid; gap: var(--s4); border-top: 1px solid rgba(244, 232, 204, .12); }
.hero-perks li { display: flex; align-items: flex-start; gap: 14px; }
.hero-perks .tk-icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(140, 196, 164, .16); color: #8CC4A4; }
.hero-perks b { display: block; color: #FBF3DD; font-size: var(--t-md); line-height: 1.5; }
.hero-perks small { display: block; color: #B9B09A; font-size: var(--t-sm); line-height: 1.6; }

.form-panel { display: flex; align-items: center; justify-content: center; }
.auth-container { width: 100%; max-width: 448px; }
.auth-header { text-align: center; margin-bottom: var(--s5); }
.auth-header .logo { display: block; width: 64px; height: 64px; margin: 0 auto var(--s4); border-radius: 16px; box-shadow: 0 14px 30px -12px rgba(15, 58, 37, .55), 0 0 0 1px var(--line); }
.auth-title { margin: 0; font: 800 var(--t-h2)/1.2 var(--f-ui); color: var(--green-ink); letter-spacing: -.01em; }
.auth-subtitle { margin: var(--s2) 0 0; color: var(--ink-2); }
.auth-card { position: relative; padding: var(--s6); border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 4px rgba(15, 58, 37, .04), 0 30px 60px -30px rgba(15, 58, 37, .35); }
/* a hairline of gold along the card's top edge */
.auth-card::before { content: ''; position: absolute; inset: 0 28px auto; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(198, 160, 82, .7), transparent); }

/* messages injected by the script */
#messageContainer:empty { display: none; }
.message { margin-bottom: var(--s4); padding: 12px 14px; border-radius: var(--r-md); font-size: var(--t-sm); line-height: 1.7; border: 1px solid transparent; }
.message.success { background: var(--wash-2); color: var(--green-ink); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.message.error { background: color-mix(in srgb, var(--error) 10%, var(--surface)); color: var(--error); border-color: color-mix(in srgb, var(--error) 30%, transparent); }
.message.info { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }

/* tabs — order matters to the script: [0] sign in, [1] sign up */
.tabs { position: relative; display: flex; gap: 4px; padding: 4px; margin-bottom: var(--s5); border-radius: 14px; background: var(--wash); }
.tab { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; height: 44px; border-radius: 10px; font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); transition: background-color var(--d1) var(--ease), color var(--d2) var(--ease); }
.tab.active { background: var(--surface); color: var(--green); box-shadow: var(--shadow-1); }
@supports selector(:has(a)) {
  .tabs::before { content: ''; position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 6px); border-radius: 10px;
    background: var(--surface); box-shadow: var(--shadow-1); transition: transform var(--d3) var(--ease); }
  .tabs:has(.tab:nth-child(2).active)::before { transform: translateX(calc(-100% - 4px)); }
  [dir="ltr"] .tabs:has(.tab:nth-child(2).active)::before { transform: translateX(calc(100% + 4px)); }
  .tab.active { background: transparent; box-shadow: none; }
}

/* form sections: shown/hidden and cross-faded by the script */
.form-section { display: none; opacity: 0; transform: translateY(8px); }
.form-section.active { display: block; animation: tkxIn .35s var(--ease) forwards; }
.form-section.fading-out { display: block; animation: tkxOut .2s var(--ease-in) forwards; }
@keyframes tkxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tkxOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px); } }

.form-group { margin-bottom: var(--s4); }
.form-label { display: block; margin-bottom: 6px; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.form-input { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--cream); color: var(--ink);
  font-size: var(--t-md); transition: border-color var(--d1) var(--ease), box-shadow var(--d2) var(--ease); }
.form-input::placeholder { color: var(--muted); }
.form-input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px var(--wash-2); }
.form-input[type="email"], .form-input[type="password"] { direction: ltr; text-align: right; }
.password-toggle { position: relative; }
.password-toggle .form-input { padding-right: 52px; padding-left: 16px; }   /* the field is LTR; the eye sits on the right */
.password-toggle-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 8px; color: var(--muted); }
.password-toggle-btn:hover { color: var(--green); background: var(--wash); }
.forgot-password { text-align: start; margin: -4px 0 var(--s4); font-size: var(--t-sm); }
.forgot-password a, .back-link a { color: var(--green); cursor: pointer; font-weight: 600; }
.forgot-password a:hover, .back-link a:hover { text-decoration: underline; }

.auth-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; border-radius: 14px;
  background: linear-gradient(180deg, var(--green-soft), var(--green) 55%, var(--green-deep)); color: var(--on-green); font-weight: 700; font-size: var(--t-md);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 12px 24px -12px rgba(15, 58, 37, .7); transition: filter var(--d1) var(--ease), transform var(--d1) var(--ease), box-shadow var(--d2) var(--ease); }
.auth-button:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 16px 28px -12px rgba(15, 58, 37, .8); transform: translateY(-1px); }
.auth-button:active { transform: scale(.99); }
.auth-button:disabled { opacity: .7; cursor: default; }
.auth-button .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; }
.auth-button.loading .spinner { display: inline-block; animation: tkxSpin .8s linear infinite; }   /* finite in practice: only while a request is in flight */
@keyframes tkxSpin { to { transform: rotate(360deg); } }

.divider { display: flex; align-items: center; gap: 12px; margin: var(--s5) 0; color: var(--muted); font-size: var(--t-xs); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 54px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); transition: border-color var(--d1) var(--ease), background-color var(--d1) var(--ease), transform var(--d1) var(--ease); }
.google-btn:hover { border-color: var(--green); background: var(--cream); transform: translateY(-1px); }
.google-icon { width: 20px; height: 20px; }

/* password strength (display-only) */
.password-strength-container { margin-top: 10px; }
.password-strength-bar { height: 6px; border-radius: 6px; background: var(--wash-2); overflow: hidden; }
.password-strength-fill { height: 100%; width: 0; border-radius: 6px; transition: width var(--d3) var(--ease), background-color var(--d3) var(--ease); }
.password-strength-fill.weak { width: 25%; background: var(--error); }
.password-strength-fill.fair { width: 50%; background: #C68A2E; }
.password-strength-fill.good { width: 75%; background: var(--green-soft); }
.password-strength-fill.strong { width: 100%; background: var(--green); }
.password-strength-text { margin-top: 6px; font-size: var(--t-xs); font-weight: 600; color: var(--muted); }
.password-strength-text.weak { color: var(--error); } .password-strength-text.fair { color: #A8731F; } .password-strength-text.good, .password-strength-text.strong { color: var(--green); }
.password-requirements { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin-top: 8px; font-size: var(--t-xs); color: var(--muted); }
.requirement.met { color: var(--green); }

/* OTP */
.otp-header { text-align: center; margin-bottom: var(--s5); }
.otp-header h3 { margin: 0; font-size: var(--t-xl); color: var(--green-ink); }
.otp-header p { margin: 8px 0 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.8; }
.otp-header strong { direction: ltr; unicode-bidi: isolate; color: var(--ink); }
.otp-input-container { display: flex; justify-content: center; gap: 8px; direction: ltr; }
.otp-input { width: 48px; height: 58px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--cream); color: var(--ink); text-align: center;
  font: 700 1.5rem/1 var(--f-ui); font-variant-numeric: tabular-nums; }
.otp-input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px var(--wash-2); }
.resend-container { text-align: center; margin-top: var(--s5); font-size: var(--t-sm); color: var(--muted); }
.resend-container p { margin: 0 0 6px; }
.resend-btn { color: var(--green); font-weight: 600; } .resend-btn:disabled { color: var(--muted); cursor: default; }
.back-link { text-align: center; margin-top: var(--s5); font-size: var(--t-sm); }
.back-link a { display: inline-flex; align-items: center; gap: 6px; }
.otp-existing { text-align: center; margin-top: var(--s5); font-size: var(--t-sm); color: var(--muted); }
.otp-existing-links { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s4); margin-top: 6px; font-size: var(--t-sm); }
.otp-existing-links a { color: var(--green); cursor: pointer; font-weight: 600; }
.otp-existing-links a:hover { text-decoration: underline; }
.back-link .fa-arrow-right { font-size: .85em; }

/* success overlay */
.success-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--cream);
  opacity: 0; visibility: hidden; transition: opacity var(--d3) var(--ease), visibility 0s linear var(--d3); }
.success-overlay.visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.check-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--on-green); font-size: 2rem; }
.success-text { font: 800 var(--t-h3)/1.3 var(--f-ui); color: var(--green-ink); }

.tkx-legal { margin-top: var(--s4); text-align: center; font-size: var(--t-xs); color: var(--muted); line-height: 1.8; }
.tkx-legal a { color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }

@media (min-width: 901px) { .auth-header .logo { display: none; } }   /* the hero panel carries the mark on desktop */
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; min-height: 0; }
  .hero-panel { display: none; }
  .auth-card { padding: var(--s5) var(--s4); border-radius: 24px; }
  .auth-card::before { inset-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) { .form-section.active, .form-section.fading-out { animation: none; opacity: 1; transform: none; } }

/* ── complete-signup.html (its script is copied byte-for-byte; only the look is new) ── */
.signup-container { display: grid; place-items: center; min-height: calc(100dvh - 72px); padding: var(--s5) 0 var(--s7); }
.signup-card { position: relative; width: 100%; max-width: 480px; padding: var(--s7) var(--s6) var(--s6); border-radius: 32px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 4px rgba(15, 58, 37, .04), 0 40px 80px -36px rgba(15, 58, 37, .4); text-align: center; overflow: hidden; }
.signup-card::before { content: ''; position: absolute; inset: 0 32px auto; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(198, 160, 82, .75), transparent); }
/* a green dawn behind the emblem */
.signup-card::after { content: ''; position: absolute; inset: -40% -20% auto; height: 420px; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(26, 92, 58, .14), transparent 70%); }
.signup-card > * { position: relative; z-index: 1; }
:root[data-theme="sakina"] .signup-card { box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 40px 80px -36px rgba(0, 0, 0, .7); }
:root[data-theme="sakina"] .signup-card::after { background: radial-gradient(closest-side, rgba(111, 176, 140, .14), transparent 70%); }

/* emblem: check in a green seal, a gold ring and an eight-point star behind; pops in once */
.success-icon { position: relative; width: 96px; height: 96px; margin: 0 auto var(--s5); border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem;
  background: linear-gradient(160deg, var(--green-soft), var(--green) 55%, var(--green-deep)); color: var(--on-green);
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px rgba(198, 160, 82, .55), 0 20px 40px -16px rgba(15, 58, 37, .7);
  animation: tkxPop .7s var(--ease) both; }
.success-icon::before { content: ''; position: absolute; inset: -34px; z-index: -1; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23C6A052' stroke-opacity='.55' stroke-width='.8'%3E%3Cpath d='M50 4l12 22 24 0-12 22 12 22-24 0-12 22-12-22-24 0 12-22-12-22 24 0z'/%3E%3Crect x='22' y='22' width='56' height='56' transform='rotate(45 50 50)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: tkxSpinIn 1.1s var(--ease) both; }
@keyframes tkxPop { from { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } to { transform: none; } }
@keyframes tkxSpinIn { from { transform: rotate(-45deg) scale(.7); opacity: 0; } to { transform: none; opacity: .5; } }
.welcome-title { margin: 0; font: 800 var(--t-h2)/1.25 var(--f-ui); color: var(--green-ink); letter-spacing: -.01em; animation: tkxIn .5s .15s var(--ease) both; }
.welcome-subtitle { margin: var(--s2) auto 0; max-width: 30ch; color: var(--ink-2); line-height: 1.8; animation: tkxIn .5s .25s var(--ease) both; }

/* who you are: avatar beside name + email */
.user-info { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; margin: var(--s5) 0 0; padding: 12px 14px;
  border-radius: 18px; background: var(--wash); border: 1px solid color-mix(in srgb, var(--green) 14%, transparent); text-align: start; }
.user-info:empty, .user-info:not(:has(*)) { display: none; }
.user-avatar { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px rgba(198, 160, 82, .5); }
.user-name { font-weight: 700; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-email { color: var(--muted); font-size: var(--t-sm); direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* preferences: one inset group, rows divided inside it */
.preferences-section { margin-top: var(--s6); text-align: start; }
.preferences-title { margin: 0 0 var(--s3); padding-inline-start: 4px; font-size: var(--t-sm); font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.preferences-section { --pg: var(--surface-2); }
.preference-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--pg); cursor: pointer;
  border: 1px solid var(--line); border-top-width: 0; transition: background-color var(--d1) var(--ease); }
.preferences-title + .preference-item { border-top-width: 1px; border-radius: 18px 18px 0 0; }
.preference-item:last-child { border-radius: 0 0 18px 18px; }
.preference-item:hover { background: var(--wash); }
.preference-label { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.preference-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--green);
  box-shadow: var(--shadow-1); font-size: .95rem; }
.toggle-switch { position: relative; width: 50px; height: 30px; flex: none; border-radius: 999px; background: var(--sand); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
  transition: background-color var(--d2) var(--ease); }
.toggle-switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .22);
  transition: transform var(--d2) var(--ease); }
.toggle-switch.active { background: var(--green); } .toggle-switch.active::after { transform: translateX(-20px); }

.continue-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; margin-top: var(--s6); border-radius: 16px;
  background: linear-gradient(180deg, var(--green-soft), var(--green) 55%, var(--green-deep)); color: var(--on-green); font-weight: 700; font-size: var(--t-md);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 14px 28px -14px rgba(15, 58, 37, .75); transition: transform var(--d1) var(--ease), box-shadow var(--d2) var(--ease); }
.continue-btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 18px 32px -14px rgba(15, 58, 37, .85); }
.continue-btn .fa-arrow-left { transition: transform var(--d2) var(--ease); }
.continue-btn:hover .fa-arrow-left { transform: translateX(-3px); }
.continue-btn .loading-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; }
.continue-btn.loading { opacity: .8; pointer-events: none; }
.continue-btn.loading .loading-spinner { display: inline-block; animation: tkxSpin .8s linear infinite; }
.skip-link { margin-top: var(--s4); font-size: var(--t-sm); }
.skip-btn { color: var(--muted); cursor: pointer; border-bottom: 1px solid var(--line-strong); transition: color var(--d1) var(--ease); }
.skip-btn:hover { color: var(--green); }
@media (max-width: 600px) { .signup-card { padding: var(--s6) var(--s4) var(--s5); border-radius: 26px; } .signup-card::before { inset-inline: 24px; } }
@media (prefers-reduced-motion: reduce) { .success-icon, .success-icon::before, .welcome-title, .welcome-subtitle { animation: none; } }

/* the script's bot honeypot sits at left:-9999px — on an RTL page that opened a 10,000px sideways scroll
   (the sign-up form slid off-screen on phones). Keep it hidden in place instead. */
.form-section div[aria-hidden="true"][style*="-9999px"] { left: 0 !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:root[data-theme="sakina"] .auth-card { box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 30px 60px -30px rgba(0, 0, 0, .7); }

/* hero: our own app screens instead of the admin-set picture (the script still writes an inline
   background-image; it is ignored, so that file is never downloaded). Three iPhones hang from the
   top of the panel and fade into the green; the brand + perks sit below them. */
.hero-panel { background-image: none !important; flex-direction: column; justify-content: flex-end; }
.hero-mark { display: none; }
.hero-phones { position: absolute; inset: 0 0 auto; height: 58%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.hero-phone { position: absolute; left: 50%; top: 40px; width: 190px; aspect-ratio: 540 / 1174; padding: 6px; border-radius: 34px;
  background: linear-gradient(145deg, #5a605c 0%, #262a28 40%, #3a3f3c 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 30px 50px -24px rgba(0, 0, 0, .8); }
.hero-phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.hero-phone--c { z-index: 2; transform: translateX(-50%); }
.hero-phone--l { width: 168px; top: 80px; transform: translateX(-118%) rotate(-8deg); opacity: .85; }
.hero-phone--r { width: 168px; top: 80px; transform: translateX(18%) rotate(8deg); opacity: .85; }
.hero-panel::before { background: radial-gradient(120% 80% at 100% 0%, rgba(216, 181, 106, .18), transparent 55%),
  linear-gradient(0deg, rgba(10, 22, 15, 1) 0%, rgba(12, 30, 20, .96) 42%, rgba(18, 48, 31, .7) 100%); }
@media (max-height: 940px) { .hero-phones { height: 50%; } .hero-phone { top: 24px; width: 160px; } .hero-phone--l, .hero-phone--r { width: 142px; top: 56px; } }

.recover-code-input { text-align: center; letter-spacing: .4em; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
