:root {
  color-scheme: light;
  --brown-900: #3a3129;
  --brown-800: #52453b;
  --brown-700: #726051;
  --brown-500: #a17e62;
  --brown-200: #ddd2c9;
  --brown-100: #f3ede7;
  --cream: #f9f6f3;
  --surface: #fff;
  --ink: #292622;
  --muted: #69635d;
  --line: #e4ded8;
  --blue: #28647b;
  --red: #a54138;
  --red-pale: #fbeceb;
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--cream); line-height: 1.5; }
button, input, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(40, 100, 123, .28); outline-offset: 2px; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px 14px; color: white; background: var(--brown-900); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.login-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(390px, .82fr) minmax(480px, 1.18fr); }
.login-introduction { display: flex; position: relative; min-height: 100vh; padding: clamp(34px, 6vw, 76px); overflow: hidden; flex-direction: column; color: white; background: var(--brown-900); }
.login-introduction::before, .login-introduction::after { position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.login-introduction::before { width: 440px; height: 440px; right: -230px; bottom: -90px; }
.login-introduction::after { width: 620px; height: 620px; right: -350px; bottom: -180px; }
.brand, .mobile-brand { display: grid; width: fit-content; gap: 6px; }
.brand img, .mobile-brand img { width: 118px; height: 51px; padding: 6px 8px; object-fit: contain; border-radius: 5px; background: white; }
.brand span, .mobile-brand span { color: #d9d0c9; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.introduction-copy { width: min(530px, 100%); margin: auto 0; padding: 65px 0; }
.eyebrow { margin: 0 0 8px; color: var(--brown-500); font-size: .69rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.introduction-copy h1 { max-width: 520px; margin: 0 0 20px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; }
.introduction-copy > p:not(.eyebrow) { max-width: 520px; margin: 0; color: #ded6d0; font-size: clamp(.92rem, 1.4vw, 1.05rem); }
.process-preview { display: grid; gap: 19px; margin: 38px 0 0; padding: 0; list-style: none; }
.process-preview li { display: grid; grid-template-columns: 32px 1fr; gap: 13px; align-items: start; }
.process-preview li > span { display: grid; width: 30px; height: 30px; place-items: center; color: var(--brown-900); border-radius: 50%; background: white; font-size: .72rem; font-weight: 800; }
.process-preview strong, .process-preview small { display: block; }
.process-preview strong { font-size: .82rem; }
.process-preview small { margin-top: 2px; color: #bbb1aa; font-size: .7rem; }
.introduction-footer { z-index: 1; margin: 0; color: #a99f97; font-size: .67rem; }

.login-area { display: grid; position: relative; min-height: 100vh; padding: 80px 28px 36px; place-items: center; align-content: center; }
.login-toolbar { display: flex; position: absolute; top: 25px; right: 32px; gap: 9px; align-items: center; color: var(--muted); font-size: .7rem; font-weight: 700; }
.login-toolbar select { min-height: 36px; padding: 6px 29px 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: .72rem; font-weight: 700; }
.login-card { width: min(445px, 100%); padding: clamp(27px, 4vw, 42px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 15px 45px rgba(58,49,41,.09); }
.mobile-brand { display: none; margin-bottom: 32px; }
.login-card header h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.2; }
.login-card header > p:last-child { margin: 0; color: var(--muted); font-size: .79rem; }
#login-form { margin-top: 28px; }
.form-group { display: grid; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: .76rem; font-weight: 750; }
.form-group input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfc7c0; border-radius: 8px; background: white; }
.form-group input:hover { border-color: #a99b90; }
.form-group input[aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.form-group small { color: var(--muted); font-size: .66rem; }
.password-field { display: grid; position: relative; }
.password-field input { padding-right: 82px; }
.password-field button { position: absolute; top: 6px; right: 6px; min-height: 34px; padding: 5px 9px; color: var(--brown-700); border: 0; border-radius: 6px; background: var(--brown-100); font-size: .66rem; font-weight: 750; }
.message { display: none; margin: 3px 0 15px; padding: 11px 12px; color: #315a6b; border: 1px solid #c7dfe8; border-radius: 8px; background: #e8f3f7; font-size: .72rem; }
.message.visible { display: block; }
.message.error { color: #7c332d; border-color: #e7c2be; background: var(--red-pale); }
.primary { width: 100%; min-height: 46px; padding: 10px 16px; color: white; border: 1px solid var(--brown-700); border-radius: 8px; background: var(--brown-700); font-size: .79rem; font-weight: 750; }
.primary:hover { background: var(--brown-900); }
.primary:disabled { opacity: .55; cursor: wait; }
.account-help { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.account-help strong { display: block; margin-bottom: 4px; font-size: .73rem; }
.account-help p { margin: 0; color: var(--muted); font-size: .68rem; }
.privacy-note { width: min(445px, 100%); margin: 17px 0 0; text-align: center; color: var(--muted); font-size: .65rem; }

@media (max-width: 850px) {
  .login-layout { display: block; }
  .login-introduction { display: none; }
  .login-area { min-height: 100vh; padding: 80px 20px 35px; }
  .mobile-brand { display: grid; }
  .mobile-brand span { color: var(--muted); }
}

@media (max-width: 470px) {
  .login-area { padding: 72px 14px 24px; align-content: start; }
  .login-toolbar { top: 17px; right: 16px; }
  .login-toolbar label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .login-card { padding: 25px 20px; border-radius: 12px; box-shadow: 0 8px 25px rgba(58,49,41,.07); }
}
