:root {
  --bg: #060b12;
  --panel: #0c1521;
  --panel-2: #101b29;
  --line: #1d2c3f;
  --text: #f4f7fb;
  --muted: #8c9bae;
  --muted-2: #66768a;
  --blue: #4f8ff7;
  --blue-2: #2f73df;
  --gold: #d7aa42;
  --green: #3bc997;
  --danger: #ef6a73;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; color-scheme: dark; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(79,143,247,.12), transparent 28%),
    radial-gradient(circle at 88% 90%, rgba(215,170,66,.06), transparent 28%),
    linear-gradient(135deg, #050910 0%, #08111b 48%, #050a11 100%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(520px, 1.05fr);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px clamp(34px, 5vw, 74px);
  border-right: 1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(160deg, rgba(10,23,38,.96), rgba(5,12,21,.98)),
    #07111d;
}

.auth-visual::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -220px;
  top: 120px;
  border: 1px solid rgba(79,143,247,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(79,143,247,.025), 0 0 0 140px rgba(79,143,247,.015);
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  opacity: .28;
  background-image:
    linear-gradient(rgba(79,143,247,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,143,247,.11) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to top, #000, transparent);
}

.brand-block, .visual-copy, .visual-footer { position: relative; z-index: 1; }
.brand-row { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; color: #14120c; font-weight: 900; font-size: 14px;
  background: linear-gradient(145deg, #e6be55, #b98628);
  box-shadow: 0 12px 34px rgba(215,170,66,.16);
}
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.brand-subtitle { margin-top: 5px; color: #78889d; font-size: 11px; letter-spacing: .02em; }

.visual-copy { max-width: 560px; margin: auto 0; padding: 60px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: #d9b453; font-size: 10px; font-weight: 850;
  letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: #c89e3d; }
.visual-copy h2 { margin-top: 20px; max-width: 520px; font-size: clamp(34px, 4vw, 56px); line-height: 1.02; letter-spacing: -.045em; }
.visual-copy > p { margin-top: 20px; max-width: 500px; color: #94a3b5; font-size: 14px; line-height: 1.75; }

.feature-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 34px; }
.feature {
  min-width: 0; padding: 14px; border: 1px solid #1c3047; border-radius: 11px;
  background: rgba(12,26,41,.72);
}
.feature strong { display: block; color: #e6ebf2; font-size: 11px; }
.feature span { display: block; margin-top: 5px; color: #64768d; font-size: 9px; line-height: 1.45; }

.visual-footer { color: #52657d; font-size: 9px; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px clamp(24px, 6vw, 86px); }
.auth-card { width: min(100%, 480px); }
.mobile-brand { display: none; margin-bottom: 28px; }
.auth-kicker { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.auth-card h1 { margin-top: 10px; font-size: 32px; letter-spacing: -.035em; line-height: 1.12; }
.auth-description { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.65; }

.auth-form { margin-top: 30px; }
.field { margin-top: 14px; }
.field:first-child { margin-top: 0; }
.field label { display: block; margin-bottom: 7px; color: #a7b3c2; font-size: 10px; font-weight: 750; }
.field input {
  width: 100%; height: 50px; padding: 0 14px;
  border: 1px solid #24374d; border-radius: 9px; outline: none;
  color: var(--text); background: #09131f; font-size: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input::placeholder { color: #5e7085; }
.field input:hover { border-color: #344c67; }
.field input:focus { border-color: #4f78a8; background: #0a1623; box-shadow: 0 0 0 3px rgba(79,143,247,.08); }
.field input:-webkit-autofill { -webkit-text-fill-color: #f4f7fb; box-shadow: 0 0 0 1000px #09131f inset; }

.auth-button {
  width: 100%; min-height: 50px; margin-top: 20px; border: 1px solid #4f8ff7; border-radius: 9px;
  color: white; font-size: 11px; font-weight: 850; cursor: pointer;
  background: linear-gradient(180deg, #4f8ff7, #2f73df);
  box-shadow: 0 12px 28px rgba(47,115,223,.18); transition: .15s ease;
}
.auth-button:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 34px rgba(47,115,223,.24); }
.auth-button:disabled { opacity: .62; cursor: not-allowed; transform: none; }

.form-message { display: none; margin-top: 14px; padding: 11px 12px; border: 1px solid transparent; border-radius: 8px; font-size: 10px; line-height: 1.55; }
.form-message:not(:empty) { display: block; }
.form-message.success { color: #91e0bd; border-color: rgba(59,201,151,.22); background: rgba(59,201,151,.06); }
.form-message.error { color: #f2a2a8; border-color: rgba(239,106,115,.22); background: rgba(239,106,115,.06); }

.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.auth-links.center { justify-content: center; }
.auth-links a { color: #70a8fb; font-size: 10px; font-weight: 750; }
.auth-links a:hover { color: #9bc3ff; }
.auth-divider { height: 1px; margin: 28px 0 20px; background: linear-gradient(90deg, transparent, #1d2e42, transparent); }
.auth-footnote { color: #57697e; font-size: 9px; line-height: 1.55; text-align: center; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-main { min-height: 100vh; padding: 34px 18px; }
  .mobile-brand { display: flex; align-items: center; gap: 12px; }
}

@media (max-width: 520px) {
  .auth-main { align-items: flex-start; padding-top: 28px; }
  .auth-card h1 { font-size: 28px; }
  .auth-links { align-items: flex-start; flex-direction: column; }
  .auth-links.center { align-items: center; }
}


/* ======================================
   PREMIUM PASSWORD CONTROLS
   ====================================== */
.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 68px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-width: 48px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #2a4059;
  border-radius: 7px;
  color: #8fb8f5;
  background: rgba(12, 28, 44, 0.94);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}

.password-toggle:hover {
  border-color: #45688f;
  color: #c9ddff;
  background: #102238;
}

.password-toggle:active {
  transform: translateY(-50%) scale(.97);
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(79, 143, 247, .46);
  outline-offset: 2px;
}
