:root { color-scheme: light; font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; color: #17352f; background: #f2f4ef; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 40px 24px; background: radial-gradient(ellipse at 18% 10%, #e4ebe0, transparent 55%), #f2f4ef; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
button:focus-visible, a:focus-visible { outline: 3px solid #ad9158; outline-offset: 4px; }
.login-shell { display: grid; grid-template-columns: 1fr 1fr; width: min(1040px, 100%); min-height: 650px; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 80px #17352f12, 0 3px 10px #17352f06; }
.welcome { position: relative; overflow: hidden; background: #123c35; color: #f5f4e9; padding: 46px 48px 34px; display: flex; flex-direction: column; }
.brand { display: inline-flex; align-items: center; align-self: flex-start; gap: 13px; color: #f5f4e9; text-decoration: none; position: relative; z-index: 1; font-size: 24px; letter-spacing: -.6px; font-weight: 650; }
.brand em { font-family: Georgia, serif; font-weight: normal; color: #e3c894; }
.brand-mark { width: 36px; height: 36px; color: #e3c894; }
.welcome-copy { margin: auto 0; padding: 56px 0 70px; z-index: 1; }
.eyebrow { margin: 0 0 17px; font-size: 10px; line-height: 1.6; font-weight: 650; letter-spacing: 2px; }
.welcome .eyebrow { color: #b8cec3; }
h1 { margin: 0; font-size: clamp(40px, 4.5vw, 56px); line-height: 1.12; font-weight: 500; letter-spacing: -2px; }
h1 span { font-family: Georgia, serif; font-style: italic; color: #e3c894; }
.welcome-description { font-size: 15px; line-height: 1.7; max-width: 290px; color: #c1d2c9; margin: 26px 0 0; }
.welcome-footer { z-index: 1; font-size: 12px; color: #b8cec3; margin: 0; display: flex; align-items: center; gap: 9px; }
.small-star { font-size: 16px; color: #e3c894; }
.orbit { position: absolute; border: 1px solid #c5d8be17; width: 490px; height: 490px; border-radius: 50%; pointer-events: none; }
.orbit-one { bottom: -255px; right: -260px; }
.orbit-two { bottom: -220px; right: -305px; }
.login-panel { background: #fffefa; display: flex; flex-direction: column; padding: 55px 52px 33px; }
.login-content { margin: auto 0; padding: 32px 0 50px; }
.lock-mark { width: 48px; height: 48px; display: grid; place-items: center; background: #edf2eb; border: 1px solid #e3e9de; border-radius: 15px; margin-bottom: 29px; }
.lock-mark svg { width: 23px; height: 23px; stroke: #356b55; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.login-panel .eyebrow { color: #7a8a79; font-size: 9px; letter-spacing: 1.5px; margin-bottom: 10px; }
h2 { font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.9px; margin: 0 0 14px; }
.login-description { color: #718078; font-size: 14px; line-height: 1.7; margin: 0 0 31px; }
form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.password-field { position: relative; }
input { display: block; width: 100%; border: 1px solid #dbe1d7; border-radius: 11px; height: 52px; background: #fff; padding: 0 51px 0 15px; color: #17352f; transition: border-color .15s, box-shadow .15s; font-size: 16px; }
input::placeholder { color: #929b93; font-size: 14px; }
input:focus { outline: none; border-color: #588571; box-shadow: 0 0 0 3px #dce9df; }
input[aria-invalid="true"] { border-color: #c06653; }
.password-toggle { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 8px; color: #869388; }
.password-toggle:hover { background: #f0f4ed; color: #17352f; }
.password-toggle svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.login-submit { width: 100%; min-height: 52px; border: 0; border-radius: 11px; background: #194b3e; color: #fff; font-size: 13px; font-weight: 600; display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 20px; padding: 13px 14px; transition: background .15s, box-shadow .15s; }
.login-submit:hover:not(:disabled) { background: #103c30; box-shadow: 0 4px 12px #194b3e22; }
.login-submit:disabled { opacity: .75; }
.submit-arrow { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-left: auto; }
.login-submit[aria-busy="true"] .submit-arrow { display: none; }
.login-error { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: #9d4535; }
.access-note { display: flex; gap: 7px; align-items: center; justify-content: center; margin: 24px 0 0; font-size: 11px; line-height: 1.6; color: #869185; }
.access-note svg { width: 15px; height: 15px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.panel-footer { text-align: center; color: #a0a79b; font-size: 11px; margin: 0; }
.spinner { width: 16px; height: 16px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  body { padding: 0; background: #fffefa; display: block; }
  .login-shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; border-radius: 0; box-shadow: none; }
  .welcome { padding: max(25px, env(safe-area-inset-top)) 28px 28px; flex-shrink: 0; }
  .brand { font-size: 23px; }
  .brand-mark { width: 30px; height: 30px; }
  .welcome-copy { padding: 24px 0 0; }
  .welcome .eyebrow, .welcome-footer, .welcome-description { display: none; }
  h1 { font-size: 27px; letter-spacing: -.8px; line-height: 1.25; max-width: 300px; }
  h1 br { display: none; }
  h1 br::after { content: " "; }
  h1 span { margin-left: 6px; }
  .login-panel { padding: 0 28px max(24px, env(safe-area-inset-bottom)); flex: 1; }
  .login-content { width: min(100%, 380px); align-self: center; padding: 34px 0 38px; }
  .lock-mark { display: none; }
  h2 { font-size: 29px; }
  .login-description { margin-bottom: 26px; }
  .panel-footer { margin-top: auto; }
}
@media (max-width: 360px) {
  .welcome { padding-left: 22px; padding-right: 22px; }
  .login-panel { padding-left: 22px; padding-right: 22px; }
  .login-submit { font-size: 12px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
