/* Login layout adapted from the supplied Stitch screen. */
:root {
  color-scheme: light;
  --surface: #f8f9ff;
  --field: #eff4ff;
  --primary: #001331;
  --primary-container: #082752;
  --orange: #fe6b00;
  --orange-hover: #a04100;
  --text: #0b1c30;
  --muted: #44474f;
  --outline: #747780;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--surface); }
body { margin: 0; font-family: "Inter", sans-serif; font-size: 14px; line-height: 20px; color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input[type="checkbox"]:focus-visible { outline: 3px solid var(--primary-container); outline-offset: 4px; }
.login-background { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient { position: absolute; border-radius: 50%; }
.ambient-top { width: 550px; height: 550px; top: -128px; left: -80px; background: linear-gradient(135deg, #fe6b0033, #dce9ff4d, transparent); filter: blur(110px); }
.ambient-bottom { width: 600px; height: 600px; bottom: -144px; right: -96px; background: linear-gradient(315deg, #fe6b0033, #ffdbcc4d, transparent); filter: blur(130px); }
.ambient-center { width: 700px; height: 500px; top: 33%; left: 50%; transform: translate(-50%, -50%); background: #ffdbcc33; filter: blur(140px); }
.background-grid { position: absolute; inset: 0; background-size: 32px 32px; background-image: linear-gradient(to right, #fe6b001f 1px, transparent 1px), linear-gradient(#fe6b001f 1px, transparent 1px); }
.background-fade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, #f8f9ff4d, #f8f9ffbf); }
.auth-shell { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 40px 16px 24px; }
.login-wrap { position: relative; width: 100%; max-width: 448px; margin: auto; min-width: 0; }
.login-card { padding: 32px; background: #fffffff2; border: 1px solid #d3e4fecc; border-radius: 8px; box-shadow: 0 20px 50px #0827521f, 0 4px 12px #0827520f; backdrop-filter: blur(12px); }
.login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 32px; }
.product-wordmark { display: flex; justify-content: center; color: var(--primary); font-family: "Space Grotesk", sans-serif; font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -.04em; }
.product-accent { color: var(--orange); }
.login-brand .company-attribution { margin: 4px 0 16px; font-size: 11px; line-height: 16px; color: var(--muted); }
.company-attribution a { font-weight: 600; color: var(--primary-container); }
.company-attribution a:hover { text-decoration: underline; }
.login-brand h1 { font-family: "Space Grotesk", sans-serif; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--primary); margin: 8px 0 0; }
.login-brand p { color: var(--muted); margin: 4px 0 0; }
.login-form { display: flex; flex-direction: column; gap: 20px; }
.login-field > label, .field-heading label { display: block; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .01em; color: var(--primary); }
.login-field > label { margin-bottom: 6px; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.small-link { font-size: 11px; line-height: 16px; font-weight: 600; color: var(--orange-hover); }
.small-link:hover, .request-access a:hover { text-decoration: underline; }
.login-field input { display: block; width: 100%; min-width: 0; border: 1px solid transparent; border-radius: 4px; background: var(--field); color: var(--text); padding: 10px 14px; min-height: 44px; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.login-field input::placeholder { color: var(--outline); opacity: 1; }
.login-field input:focus { outline: none; background: white; border-color: var(--primary-container); box-shadow: 0 0 0 3px #08275222; }
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.password-toggle { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); }
.password-toggle:hover { color: var(--primary); }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.remember-choice { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 24px; font-size: 12px; line-height: 16px; color: var(--muted); cursor: pointer; user-select: none; }
.remember-choice input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary-container); cursor: pointer; }
.login-submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; min-height: 48px; border: 0; border-radius: 4px; background: var(--orange); color: white; font-family: "Space Grotesk", sans-serif; font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: .02em; box-shadow: 0 4px 6px #08275214; transition: background .15s ease, box-shadow .15s ease; }
.login-submit:hover { background: var(--orange-hover); box-shadow: 0 5px 12px #0827521a; }
.login-submit:disabled { opacity: .65; cursor: wait; }
.login-error { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #ba1a1a33; border-radius: 4px; background: #fff1ef; color: #93000a; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.request-access { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e5eeff; text-align: center; font-size: 12px; line-height: 18px; color: var(--muted); }
.request-access p { margin: 0; }
.request-access a { font-weight: 600; color: var(--orange-hover); }
.back-home { width: fit-content; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 20px auto 0; padding: 4px; color: var(--muted); font-size: 12px; line-height: 18px; }
.back-home:hover { color: var(--primary); text-decoration: underline; }
.login-footer { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding: 12px 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; text-align: center; font-size: 11px; line-height: 16px; color: var(--muted); }
.login-footer nav { display: flex; align-items: center; justify-content: center; gap: 10px; }
.login-footer a:hover { color: var(--primary); text-decoration: underline; }
@media (min-width: 640px) { .auth-shell { padding-left: 24px; padding-right: 24px; } .login-card { padding: 40px; } }
@media (max-width: 380px) { .auth-shell { padding: 24px 16px 16px; } .login-card { padding: 24px 20px; } .login-brand { margin-bottom: 24px; } }
@media (max-width: 639px) { .login-field input { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
