/* ═══════════════════════════════════════════════════
   PSN TRADE v2 — AUTH STYLES
   /public_html/v2/assets/css/auth.css
   ═══════════════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg:      #08090f;
  --bg1:     #0d1120;
  --bg2:     #111827;
  --bg3:     #1a2236;
  --bdr:     #1f2d44;
  --bdr2:    #2a3d5c;
  --t1:      #e8edf5;
  --t2:      #64748b;
  --t3:      #334155;
  --gold:    #f0a500;
  --gold-d:  rgba(240,165,0,.12);
  --green:   #10b981;
  --red:     #ef4444;
  --r:       12px;
  --font:    'Syne', sans-serif;
  --mono:    'JetBrains Mono', monospace;
}

html {
  height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--t1);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 48px;
  overflow-y: auto;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bdr2); border-radius: 3px; }

/* ── Wrapper ────────────────────────────────────────── */
.auth-wrap {
  width: 100%;
  max-width: 400px;
}

/* ── Card ───────────────────────────────────────────── */
.auth-card {
  background: var(--bg1);
  border: 1px solid var(--bdr);
  border-radius: 20px;
  overflow: visible;
  position: relative;
  margin-top: 52px; /* space for logo bleed */
}

/* ── Logo — sits on top edge of card ───────────────── */
.auth-logo-wrap {
  position: absolute;
  top: -52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.auth-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  border: 3px solid var(--bdr2);
  background: var(--bg2);
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}

/* ── Body ───────────────────────────────────────────── */
.auth-body {
  padding: 56px 24px 28px; /* top pad for logo */
}

.auth-heading {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--t1);
  margin-bottom: 4px;
  letter-spacing: -.3px;
}

.auth-sub {
  font-size: 12px;
  color: var(--t2);
  text-align: center;
  margin-bottom: 22px;
}

/* ── Alert ──────────────────────────────────────────── */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.5;
}
.auth-alert i { margin-top: 1px; flex-shrink: 0; }
.auth-alert.err {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  color: #fca5a5;
}
.auth-alert.ok {
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
  color: #6ee7b7;
}

/* ── Method tabs ────────────────────────────────────── */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 20px;
  background: var(--bg2);
  border: 1px solid var(--bdr);
  border-radius: 10px;
  padding: 4px;
}

.auth-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 8px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--t2);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  letter-spacing: .2px;
}
.auth-tab i { font-size: 12px; }
.auth-tab:hover { color: var(--t1); }
.auth-tab.on {
  background: var(--bg3);
  color: var(--gold);
  border: 1px solid var(--bdr2);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* ── Input group ────────────────────────────────────── */
.inp-wrap {
  margin-bottom: 16px;
}

.inp-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--t2);
  margin-bottom: 7px;
}

.inp-lbl .inp-hint {
  font-size: 9px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--t3);
  font-weight: 500;
}

.inp-lbl .required-star {
  color: var(--gold);
  font-weight: 700;
}

.inp-lbl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}
.inp-lbl-row .inp-lbl { margin-bottom: 0; }

/* Input with icon */
.inp-icon-wrap {
  position: relative;
}

.inp {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  background: var(--bg2);
  border: 1px solid var(--bdr);
  border-radius: 10px;
  color: var(--t1);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, background .15s;
  -webkit-appearance: none;
}
.inp:focus {
  border-color: var(--gold);
  background: var(--bg3);
}
.inp::placeholder { color: var(--t3); }
.inp[readonly] {
  opacity: .5;
  cursor: not-allowed;
}
/* No eye btn — reduce right padding */
.inp-icon-wrap .inp:not(:has(~ .inp-eye)) {
  padding-right: 14px;
}

.inp-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--t3);
  font-size: 13px;
  pointer-events: none;
  width: 14px;
  text-align: center;
}

.inp-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--t3);
  cursor: pointer;
  font-size: 13px;
  transition: color .15s;
  border-radius: 6px;
}
.inp-eye:hover { color: var(--t2); background: var(--bg3); }

.inp-msg {
  font-size: 11px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.inp-msg.ok  { color: var(--green); }
.inp-msg.err { color: var(--red); }

/* ── Checkbox ───────────────────────────────────────── */
.check-wrap {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  margin-bottom: 18px;
  user-select: none;
}
.check-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.check-box {
  width: 20px; height: 20px;
  min-width: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--bdr2);
  background: var(--bg2);
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.check-wrap input:checked ~ .check-box {
  background: var(--gold);
  border-color: var(--gold);
}
.check-wrap input:checked ~ .check-box::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid #000;
  border-top: none;
  border-left: none;
  transform: rotate(42deg) translateY(-1px);
  display: block;
}
.check-lbl {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.6;
  padding-top: 1px;
}

/* ── Submit button ──────────────────────────────────── */
.btn-auth {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all .18s;
  margin-bottom: 18px;
}
.btn-auth:hover  { filter: brightness(1.1); }
.btn-auth:active { filter: brightness(.92); transform: scale(.99); }

.btn-ghost-sm {
  width: 100%;
  height: 44px;
  background: transparent;
  border: 1px solid var(--bdr);
  border-radius: 10px;
  color: var(--t2);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.btn-ghost-sm:hover { border-color: var(--bdr2); color: var(--t1); }

/* ── Footer ─────────────────────────────────────────── */
.auth-switch {
  font-size: 12px;
  color: var(--t3);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
}

.auth-link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }
.auth-link.small { font-size: 11px; font-weight: 600; }

.auth-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  color: var(--t3);
  padding-top: 4px;
}
.auth-secure i { font-size: 11px; }
.auth-secure-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--t3);
}

/* ── Disclaimer sheet ───────────────────────────────── */
.sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
}
.sheet-overlay.on { display: flex; }

.sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg1);
  border: 1px solid var(--bdr2);
  border-radius: 20px 20px 0 0;
  padding: 20px 22px 36px;
  animation: shUp .25s cubic-bezier(.34,1.1,.64,1);
  max-height: 82vh;
  overflow-y: auto;
}
@keyframes shUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.sheet-grip {
  width: 36px; height: 4px;
  background: var(--bdr2);
  border-radius: 2px;
  margin: 0 auto 18px;
}
.sheet-title {
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}

.disclaimer-body {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.75;
  margin-bottom: 8px;
}
.disclaimer-body p { margin-bottom: 10px; }
.disclaimer-body strong { color: var(--t1); font-weight: 700; }
.disclaimer-body ul { padding-left: 18px; margin-bottom: 10px; }
.disclaimer-body li { margin-bottom: 6px; }

/* ── Divider ─────────────────────────────────────────── */
.auth-divider {
  height: 1px;
  background: var(--bdr);
  margin: 18px 0;
}

/* ── Utilities ──────────────────────────────────────── */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }