/* Auth pages (login / register / forgot / invite) */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth__art {
  position: relative; overflow: hidden; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; color: #f2ecdd;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(63, 143, 209, .35), transparent 65%),
    radial-gradient(60% 60% at 0% 100%, rgba(214, 178, 106, .25), transparent 65%),
    linear-gradient(160deg, #0f2d44, #06131d 70%);
}
.auth__art::before { content: ''; position: absolute; inset-inline-end: -120px; top: 50%; translate: 0 -50%; width: 640px; height: 640px; background: url('/assets/img/web/emblem-gold.webp') center/contain no-repeat; opacity: .08; animation: auth-spin 120s linear infinite; }
@keyframes auth-spin { to { rotate: 360deg; } }
.auth__logo img { height: 54px; width: auto; filter: brightness(0) invert(1) sepia(.25) saturate(1.6); }
.auth__pitch { position: relative; z-index: 1; max-width: 520px; }
.auth__pitch .kick { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 12.5px; color: #f1d99b; padding: 6px 14px; border-radius: 99px; border: 1px solid rgba(241, 217, 155, .3); background: rgba(214, 178, 106, .1); }
.auth__pitch h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.35; margin: 18px 0 12px; }
.auth__pitch h1 em { font-style: normal; background: linear-gradient(100deg, #f1d99b, #d6b26a 45%, #b88a3e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth__pitch p { color: rgba(242, 236, 221, .75); font-size: 15.5px; }
.auth__stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.auth__stats div { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.auth__stats b { font-family: var(--f-display); font-size: 24px; display: block; color: #f1d99b; }
.auth__stats span { font-size: 12.5px; color: rgba(242, 236, 221, .7); }
.auth__quote { position: relative; z-index: 1; font-family: 'Amiri', serif; font-size: 20px; color: #f1d99b; padding-inline-start: 16px; border-inline-start: 2px solid #d6b26a; }
.auth__quote small { display: block; font-family: var(--f-body); font-size: 12px; color: rgba(242, 236, 221, .6); }

.auth__panel { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); position: relative; }
.auth__top { position: absolute; top: 20px; inset-inline: 24px; display: flex; justify-content: space-between; align-items: center; }
.auth__top a { font-family: var(--f-display); font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.auth__top a:hover { color: var(--gold-2); }
.auth__box { width: min(440px, 100%); display: grid; gap: 22px; }
.auth__head h2 { font-size: 26px; }
.auth__head p { color: var(--ink-3); margin-top: 4px; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 5px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.roles button { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px; font-family: var(--f-display); font-size: 13px; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.roles button svg { width: 22px; height: 22px; }
.roles button.on { background: var(--surface); color: var(--gold-2); box-shadow: var(--shadow); }
.auth form { display: grid; gap: 16px; }
.auth__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.auth__row a { color: var(--gold-2); font-family: var(--f-display); }
.auth__alt { text-align: center; font-size: 13.5px; color: var(--ink-3); }
.auth__alt a { color: var(--gold-2); font-family: var(--f-display); font-weight: 600; }
.auth__note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--blue-soft); color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.auth__note svg { width: 18px; height: 18px; color: var(--blue); margin-top: 3px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo button { padding: 10px 6px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 12.5px; color: var(--ink-2); font-family: var(--f-display); }
.demo button:hover { border-color: var(--gold); color: var(--gold-2); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 2px; }
.strength i { height: 4px; border-radius: 4px; background: var(--surface-3); transition: background .3s; }
.strength[data-s="1"] i:nth-child(-n+1) { background: var(--red); }
.strength[data-s="2"] i:nth-child(-n+2) { background: var(--amber); }
.strength[data-s="3"] i:nth-child(-n+3) { background: var(--gold); }
.strength[data-s="4"] i { background: var(--green); }
.success { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 10px 0; }
.success .li__ico { width: 64px; height: 64px; border-radius: 50%; }
.success .li__ico svg { width: 30px; height: 30px; }
.invite-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.invite-card b { font-family: var(--f-display); display: block; }
.invite-card span { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth__art { padding: 28px 22px; min-height: auto; }
  .auth__art .auth__pitch h1 { font-size: 26px; margin: 12px 0 6px; }
  .auth__stats, .auth__quote { display: none; }
  .auth__panel { padding: 30px 18px 40px; }
  .auth__top { position: static; margin-bottom: 18px; width: min(440px, 100%); }
  .auth__panel { place-items: start center; }
}
.auth__stats b { direction: ltr; unicode-bidi: isolate; text-align: right; }

.auth .field .err { display: block; min-height: 18px; visibility: hidden; }
.auth .field.invalid .err { visibility: visible; }
.auth form { gap: 10px; }

[hidden] { display: none !important; }
