:root {
  color-scheme: light;
  font-family: Inter, "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #142137;
  background: #f4f6f8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }

.auth-page { min-height: 100vh; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .92fr) minmax(480px, 1.08fr); }
.brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 100vh; padding: 42px clamp(34px, 5vw, 76px); color: white; background: #081a2f; }
.brand-panel::before { content: ""; position: absolute; width: 560px; height: 560px; left: -180px; bottom: -220px; border: 1px solid rgba(200,161,90,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(200,161,90,.025), 0 0 0 140px rgba(200,161,90,.02); }
.brand-panel::after { content: ""; position: absolute; right: -170px; top: -180px; width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle, rgba(200,161,90,.18), transparent 68%); }
.brand-top, .mobile-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.brand-mark { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; color: #081a2f; background: #c8a15a; font-size: 15px; font-weight: 950; letter-spacing: -.04em; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.brand-top strong { display: block; font-size: 15px; letter-spacing: .03em; }
.brand-top span { display: block; margin-top: 4px; color: #d4b46f; font-size: 10px; letter-spacing: .16em; }
.brand-copy { position: relative; z-index: 1; margin: auto 0; max-width: 520px; }
.eyebrow { margin: 0 0 14px; color: #a27931; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.brand-copy .eyebrow { color: #d4b46f; }
.brand-copy h1 { margin: 0; font-size: clamp(42px, 5.1vw, 72px); line-height: .99; letter-spacing: -.055em; }
.brand-copy > p:last-child { max-width: 430px; margin: 28px 0 0; color: #aebaca; font-size: 15px; line-height: 1.75; }
.brand-footer { position: relative; z-index: 1; margin: 0; color: #526178; font-size: 9px; letter-spacing: .18em; }
.form-panel { display: grid; place-items: center; align-content: center; min-height: 100vh; padding: 48px 28px; background: linear-gradient(150deg, #fff 0%, #f6f7f9 100%); }
.mobile-brand { display: none; }
.auth-card { width: min(100%, 440px); }
.auth-card h2 { margin: 0; color: #0b1f37; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -.045em; }
.lead { margin: 13px 0 28px; color: #64748b; font-size: 14px; line-height: 1.65; }
form { display: grid; gap: 17px; }
label { display: grid; gap: 8px; color: #334155; font-size: 12px; font-weight: 750; }
input { width: 100%; border: 1px solid #d7dee7; border-radius: 13px; padding: 13px 14px; color: #142137; background: #fff; outline: none; box-shadow: 0 1px 2px rgba(8,26,47,.02); transition: border-color .16s ease, box-shadow .16s ease; }
input:focus { border-color: #c8a15a; box-shadow: 0 0 0 4px rgba(200,161,90,.14); }
.primary-button { width: 100%; margin-top: 5px; border: 0; border-radius: 13px; padding: 14px 18px; color: white; background: #0b2340; font-weight: 800; cursor: pointer; box-shadow: 0 12px 28px rgba(11,35,64,.16); }
.primary-button:hover { background: #123355; }
.auth-link { display: block; text-align: center; text-decoration: none; }
.support-text a { color: #0b2340; font-weight: 750; }
.password-hint, .support-text { margin: -5px 0 0; color: #7b8797; font-size: 11px; line-height: 1.55; }
.support-text { margin-top: 24px; text-align: center; }
.alert { margin: 0 0 22px; border-radius: 13px; padding: 12px 14px; font-size: 12px; line-height: 1.55; }
.alert-error { border: 1px solid #fecaca; color: #991b1b; background: #fff1f2; }
.alert-notice { border: 1px solid #fde68a; color: #7c5d14; background: #fffbeb; }
.legal { width: min(100%, 440px); margin: 34px 0 0; color: #a0a9b5; font-size: 10px; text-align: center; letter-spacing: .08em; }

@media (max-width: 820px) {
  .auth-layout { display: block; min-height: 100vh; }
  .brand-panel { display: none; }
  .form-panel { min-height: 100vh; padding: max(30px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom)); }
  .mobile-brand { display: flex; width: min(100%, 440px); margin-bottom: 52px; color: #0b1f37; font-size: 13px; letter-spacing: .04em; }
  .mobile-brand .brand-mark { width: 43px; height: 43px; border-radius: 13px; font-size: 13px; }
}

@media (max-height: 720px) and (min-width: 821px) {
  .brand-panel { padding-top: 28px; padding-bottom: 28px; }
  .form-panel { padding-top: 28px; padding-bottom: 28px; }
}
