/* GLAIVORA — account pages: forms (kayit, giris, dogrula, sifre) and the account dashboard (hesap).
   Builds on base.css (tokens, buttons, panels) and sections.css (.page-head). */

/* ------------------------------------------------------------------ auth layout */
.auth { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 32px); align-items: start; max-width: 1020px; margin: 0 auto; padding-bottom: clamp(64px, 9vw, 110px); }
.auth--narrow { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.auth__title { margin-bottom: 6px; color: var(--gold); font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.5rem); letter-spacing: .04em; line-height: 1.2; }
.auth__title:focus { outline: 0; }
.auth__text { color: var(--muted); }
.auth__text + .auth__text { margin-top: 8px; }
.auth__email { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.auth__alt { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(124, 160, 255, .16); color: var(--muted); }
.auth__alt p + p { margin-top: 6px; }
.nv { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; padding: 12px 16px; border: 1px solid rgba(255, 219, 115, .45); border-radius: 10px; background: rgba(255, 219, 115, .07); color: var(--text); }
.notice .btn { min-height: 40px; padding: 8px 16px; font-size: .85rem; }
.notice--warn { border-color: rgba(255, 156, 156, .5); background: rgba(255, 90, 90, .08); }

/* ------------------------------------------------------------------ fields */
.form { display: grid; gap: 18px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field > label { color: #fff; font-weight: 700; line-height: 1.3; }
.input { width: 100%; min-height: 50px; margin: 0; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(5, 8, 24, .75); color: var(--text); font: inherit; font-size: 1.15rem; font-weight: 600; line-height: 1.3; transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: rgba(179, 189, 226, .6); }
.input:hover { border-color: rgba(124, 205, 255, .75); }
.input:focus { border-color: var(--cyan); outline: 0; box-shadow: 0 0 0 3px rgba(89, 230, 255, .25); }
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255, 110, 110, .18); }
.input--code { max-width: 260px; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: .4em; text-align: center; }
.field__hint { color: var(--muted); font-size: 1rem; line-height: 1.35; }
.field__err { color: var(--bad); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.field__err:empty { display: none; }
.peek { position: relative; }
.peek .input { padding-right: 56px; }
.peek__btn { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.peek__btn:hover, .peek__btn[aria-pressed="true"] { color: var(--gold); }
.peek__btn .icon { width: 1.35em; height: 1.35em; }
.check { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.check label { color: var(--text); line-height: 1.4; cursor: pointer; }
.check .field__hint, .check .field__err, .check__links { grid-column: 2; }
.check__links { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 1rem; }
.check__links a { font-weight: 700; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__actions .btn { min-width: 200px; }

/* ------------------------------------------------------------------ messages (aria-live; empty = not shown) */
.form-msg { padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(89, 230, 255, .07); color: var(--text); line-height: 1.4; }
.form-msg:empty { display: none; }
.form-msg--ok { border-color: rgba(126, 240, 176, .55); background: rgba(126, 240, 176, .08); }
.form-msg--err { border-color: rgba(255, 156, 156, .6); background: rgba(255, 90, 90, .09); }
.form-msg a, .form-msg .link-btn { font-weight: 700; }
.resend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 18px; color: var(--muted); }
.done { text-align: center; }
.done__mark { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 14px; border: 2px solid var(--gold); border-radius: 50%; color: var(--gold); box-shadow: 0 0 26px rgba(255, 200, 90, .35); }
.done__mark .icon { width: 34px; height: 34px; stroke-width: 2.2; }
.done .auth__text { max-width: 30em; margin-inline: auto; }
.done .btn { margin-top: 20px; }

/* ------------------------------------------------------------------ closed-beta steps (aside) */
.flow { display: grid; gap: 16px; margin-top: 16px; counter-reset: flow; }
.flow li { position: relative; padding-left: 52px; counter-increment: flow; }
.flow li::before { content: counter(flow); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--gold); border-radius: 50%; background: rgba(255, 219, 115, .08); color: var(--gold); font-family: var(--font-display); font-size: 1rem; }
.flow strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; }
.flow span { display: block; margin-top: 2px; color: var(--muted); line-height: 1.4; }
.aside__more { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(124, 160, 255, .16); }

/* ------------------------------------------------------------------ account dashboard */
.acc { max-width: 1100px; margin: 0 auto; padding-bottom: clamp(64px, 9vw, 110px); }
.acc__state { padding: 28px 0; color: var(--muted); text-align: center; }
.acc__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(18px, 2.6vw, 28px); align-items: start; }
.acc__col { display: grid; gap: clamp(18px, 2.6vw, 28px); }
.acc__wide { grid-column: 1 / -1; }
.acc h2 { margin-bottom: 10px; color: var(--gold); font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .04em; line-height: 1.2; }
.acc h3 { margin: 22px 0 10px; color: #fff; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em; }
.beta-card .tag { margin-bottom: 12px; }
.beta-card .acc__big { color: #fff; font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.15; }
.beta-card p:not([class]) { margin-top: 10px; color: var(--muted); }
.beta-card--ok { border-color: rgba(255, 219, 115, .55); background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 184, 51, .16), transparent 70%), linear-gradient(180deg, rgba(24, 31, 80, .9), rgba(11, 15, 44, .94)); }
.dl { display: grid; justify-items: start; gap: 8px; margin-top: 20px; }
.dl .btn { min-height: 60px; padding: 16px 34px; font-size: 1.2rem; }
.dl .icon { width: 1.3em; height: 1.3em; stroke-width: 2.2; }
.dl small { color: var(--muted); font-size: .98rem; }
.dl__sha { font-size: .82rem !important; max-width: 100%; overflow-wrap: anywhere; }
.dl__sha code { font-family: ui-monospace, Consolas, monospace; color: var(--text, #e8e4f0); user-select: all; }
.steps-mini { display: grid; gap: 10px; counter-reset: st; }
.steps-mini li { position: relative; padding-left: 38px; color: var(--text); line-height: 1.4; counter-increment: st; }
.steps-mini li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #0b1030; font-family: var(--font-display); font-size: .85rem; }
.reqs { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 6px 18px; }
.reqs dt { color: var(--cyan); font-weight: 700; }
.reqs dd { color: var(--text); }
.reqs .is-tba { color: var(--muted); font-style: italic; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.social-row a { font-weight: 700; }
.profile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.profile dt { margin-top: 10px; color: var(--cyan); font-size: .95rem; font-weight: 700; letter-spacing: .06em; }
.profile dt:first-child { margin-top: 0; }
.profile dd { color: #fff; font-size: 1.15rem; overflow-wrap: anywhere; }
.badge { display: inline-block; margin-left: 8px; padding: 1px 9px; border: 1px solid currentColor; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; vertical-align: 2px; }
.badge--ok { color: var(--ok); }
.badge--no { color: var(--bad); }
.switch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; }
.switch input { position: relative; width: 52px; height: 30px; margin: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(5, 8, 24, .8); cursor: pointer; appearance: none; -webkit-appearance: none; transition: background-color .2s, border-color .2s; }
.switch input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform .2s, background-color .2s; }
.switch input:checked { border-color: var(--gold); background: rgba(255, 219, 115, .25); }
.switch input:checked::before { background: var(--gold); transform: translateX(22px); }
.switch input:disabled { cursor: progress; opacity: .6; }
.switch label { color: #fff; font-weight: 700; cursor: pointer; }
.switch .field__hint { grid-column: 1 / -1; }
.switch__state { margin-top: 8px; color: var(--text); font-weight: 700; }
.danger { border-color: rgba(255, 120, 120, .45); }
.danger::before, .danger::after { border-color: #ff7a7a; }
.danger summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #ffb3b3; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .06em; list-style: none; cursor: pointer; }
.danger summary::-webkit-details-marker { display: none; }
.danger summary .icon { transition: transform .25s; }
.danger[open] summary .icon { transform: rotate(180deg); }
.danger__body { display: grid; gap: 10px; margin-top: 16px; }
.danger__body > p { color: var(--muted); }
.danger__body > p:first-child { color: var(--text); }
.danger .btn { justify-self: start; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .auth, .acc__grid { grid-template-columns: minmax(0, 1fr); }
  /* one column on phones: status, profile and e-mail choice first, then the forms */
  .acc__col { display: contents; }
  .beta-card { order: 1; }
  .acc__profile { order: 2; }
  .acc__news { order: 3; }
  .acc__pw { order: 4; }
  .acc__out { order: 5; }
  .danger { order: 6; }
}
@media (max-width: 560px) {
  .form__actions .btn, .dl, .dl .btn, .danger .btn { width: 100%; }
  .dl { justify-items: stretch; }
  .reqs { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .reqs dd { margin-bottom: 8px; }
}
