:root {
  --bg: #071216;
  --panel: #0f2228;
  --line: #29444c;
  --text: #eef4f5;
  --muted: #91aab1;
  --gold: #f2c14e;
  --red: #ef6670;
  --green: #63d39a;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font-family: Tahoma, "Leelawadee UI", Arial, sans-serif; }
button, input { font: inherit; }
.auth-layout { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); }
.auth-brand { position: relative; padding: clamp(42px, 7vw, 96px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: radial-gradient(circle at 20% 20%, #1d3b3b 0, #0c1d22 42%, #071216 78%); }
.auth-brand::before { content: ""; position: absolute; width: 65vw; height: 65vw; left: -38vw; bottom: -38vw; border: 1px solid rgba(242,193,78,.28); border-radius: 50%; box-shadow: 0 0 0 70px rgba(242,193,78,.025), 0 0 0 140px rgba(242,193,78,.018); }
.auth-brand::after { content: "45°"; position: absolute; right: -20px; bottom: 30px; color: rgba(242,193,78,.045); font: 800 190px Georgia, serif; transform: rotate(-10deg); }
.brand-logo, .mobile-logo { display: grid; place-items: center; overflow: hidden; background: #fff; }
.brand-logo { width: 92px; height: 92px; margin-bottom: 28px; padding: 6px; border-radius: 20px; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.brand-logo img, .mobile-logo img { width: 100%; height: 100%; object-fit: contain; }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 2.2px; }
.auth-brand h1 { position: relative; margin: 10px 0 18px; font: 800 clamp(46px, 6vw, 76px)/.9 Georgia, "Times New Roman", serif; letter-spacing: -2px; }
.auth-brand h1 em { color: var(--gold); font-style: normal; }
.auth-brand > p { max-width: 520px; margin: 0; color: #a7bec4; font-size: 16px; line-height: 1.75; }
.feature-list { position: relative; display: grid; gap: 10px; margin-top: 34px; }
.feature-list span { display: flex; align-items: center; gap: 12px; color: #c7d6d9; }
.feature-list i { width: 50px; padding: 7px 0; border: 1px solid #536040; border-radius: 8px; background: rgba(242,193,78,.08); color: var(--gold); font-style: normal; font-size: 11px; font-weight: 700; text-align: center; }
.auth-panel { padding: 36px; display: grid; place-items: center; background: linear-gradient(145deg, #0c1d22, #08161a); }
.auth-card { width: min(430px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: rgba(15,34,40,.94); box-shadow: 0 30px 80px rgba(0,0,0,.34); }
.mobile-logo { display: none; }
.auth-card h2 { margin: 7px 0 4px; font-size: 28px; }
.auth-card > p { margin: 0 0 26px; color: var(--muted); line-height: 1.6; }
form { display: grid; }
label { margin: 14px 0 7px; color: #bfd0d4; font-size: 12px; font-weight: 700; }
input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #385760; border-radius: 11px; outline: 0; background: #08191e; color: white; font-size: 16px; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,193,78,.09); }
.password-field { position: relative; }
.password-field input { padding-right: 75px; }
.password-field button { position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: #193139; color: #b9cdd1; font-size: 11px; cursor: pointer; }
.auth-message { min-height: 37px; padding-top: 12px; color: #ffadb3; font-size: 12px; line-height: 1.45; }
.auth-message.success { color: var(--green); }
.login-button { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 11px; background: var(--gold); color: #132024; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px rgba(242,193,78,.16); }
.login-button:disabled { opacity: .65; cursor: wait; }
.login-button i { display: none; width: 16px; height: 16px; border: 2px solid rgba(19,32,36,.25); border-top-color: #132024; border-radius: 50%; animation: spin .7s linear infinite; }
.login-button.loading i { display: block; }
.secure-note { margin-top: 22px; padding: 12px 13px; border: 1px solid #315249; border-radius: 10px; background: rgba(99,211,154,.045); }
.secure-note b, .secure-note span { display: block; }
.secure-note b { color: var(--green); font-size: 9px; letter-spacing: 1.2px; }
.secure-note span { margin-top: 4px; color: #8da9a2; font-size: 10px; line-height: 1.5; }
.auth-card footer { margin-top: 25px; color: #647f86; font-size: 10px; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .auth-layout { display: block; min-height: 100vh; min-height: 100dvh; background: radial-gradient(circle at 30% 0, #193438, #08171b 50%); }
  .auth-brand { display: none; }
  .auth-panel { min-height: 100vh; min-height: 100dvh; padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); background: transparent; }
  .auth-card { padding: 28px 22px; border-radius: 20px; }
  .mobile-logo { width: 68px; height: 68px; display: grid; margin-bottom: 18px; padding: 4px; border-radius: 15px; }
  .auth-card h2 { font-size: 25px; }
}
