:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #c3974e; outline-offset: 3px; }
.auth-body { min-height: 100vh; color: #183027; background: radial-gradient(ellipse at 50% -20%, #174a36 0, #0b251a 38%, #05120c 78%); }
.auth-shell { max-width: 1220px; min-height: 100vh; margin: 0 auto; padding: 30px 40px 26px; }
.auth-brand { display: inline-flex; align-items: center; gap: 11px; color: #f5f5e9; text-decoration: none; }
.auth-brand-mark { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 11px; background: white; }
.auth-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.auth-brand-word strong, .auth-brand-word small { display: block; }
.auth-brand-word strong { font-size: 17px; letter-spacing: .04em; }
.auth-brand-word small { margin-top: 2px; font-size: 10px; letter-spacing: .03em; color: #c1d0c2; }
.auth-intro { margin: 28px 0 24px; text-align: center; }
.auth-kicker, .auth-section-label, .auth-blade-label { font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.auth-kicker { color: #afc1b1; }
.auth-intro h1 { margin: 0; color: #f5f6ed; font-size: clamp(24px, 3.5vw, 44px); line-height: 1.1; letter-spacing: -.04em; }
.auth-intro h1 em { color: #dcb970; font-family: Georgia, serif; font-weight: 400; }
.auth-intro p { margin: 0; color: #b5c9b9; font-size: 13px; }
.auth-card { position: relative; min-height: 555px; overflow: hidden; border: 1px solid rgba(207, 222, 204, .35); border-radius: 24px; background: #f8f6ed; box-shadow: 0 28px 80px #0006; }
.auth-pane { position: absolute; top: 0; bottom: 0; z-index: 1; width: 50%; display: flex; align-items: center; padding: 45px 7%; }
.auth-signin { left: 0; padding-right: 9%; }
.auth-signup { right: 0; padding-left: 9%; }
.auth-pane-inner { width: 100%; max-width: 390px; margin: auto; }
.auth-section-label { margin: 0 0 9px; color: #608070; }
.auth-pane h2 { margin: 0; font-size: 31px; letter-spacing: -.035em; color: #13281e; }
.auth-dot { color: #b79047; }
.auth-rule { display: block; width: 44px; height: 3px; margin: 12px 0 18px; border-radius: 2px; background: #b98d45; }
.auth-subtitle { margin: 0 0 24px; color: #708077; font-size: 13px; line-height: 1.5; }
.auth-pane label { display: block; margin: 20px 0 7px; color: #40594b; font-size: 12px; font-weight: 650; }
.auth-pane input:not([type=hidden]) { display: block; width: 100%; height: 42px; padding: 4px 0; border: 0; border-bottom: 1px solid #b7c3b7; border-radius: 0; background: transparent; color: #172d21; font-size: 14px; }
.auth-pane input::placeholder { color: #849287; }
.auth-pane input:focus { border-bottom-color: #1f6649; outline: none; box-shadow: 0 1px #1f6649; }
.auth-password { position: relative; }
.auth-password input { padding-right: 55px !important; }
.auth-reveal { position: absolute; right: 0; top: 8px; border: 0; padding: 6px; background: transparent; color: #567765; font-size: 11px; font-weight: 700; }
.auth-help { margin: 14px 0 0; color: #7c8d7f; font-size: 11px; }
.auth-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; margin-top: 24px; border: 0; border-radius: 99px; background: linear-gradient(110deg,#1b6749,#073722); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px #0a56352b; transition: transform .2s, box-shadow .2s; }
.auth-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px #0a56354a; }
.auth-submit:disabled { cursor: not-allowed; opacity: .56; }
.auth-switch { margin: 24px 0 0; color: #728279; font-size: 12px; }
.auth-switch button { padding: 0 0 2px; border: 0; border-bottom: 1px solid #b68d46; background: none; color: #18452e; font-weight: 700; }
.auth-notice, .auth-error { margin: 0 0 14px; padding: 11px 13px; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.auth-notice { background: #e8eee1; color: #466653; }
.auth-error { border: 1px solid #e7bbad; background: #fff1ec; color: #9c3c27; }
.auth-preview { padding: 0; margin: 0; border: 0; }
.auth-preview input { opacity: .7; }
.auth-blade { position: absolute; inset: 0 0 0 auto; z-index: 2; width: 56%; display: flex; align-items: center; color: #f3f4e9; background: radial-gradient(ellipse at 80% 10%,#176044 0,#0b4832 45%,#062b1c 100%); clip-path: polygon(0 0,100% 0,100% 100%,24% 100%); transition: transform .8s cubic-bezier(.76,0,.24,1), clip-path .8s cubic-bezier(.76,0,.24,1); }
.auth-blade-inner { width: 100%; padding: 50px 12% 50px 28%; }
.auth-blade-label { color: #d2ae6d; }
.auth-blade h2 { margin: 20px 0 16px; font-family: Georgia,serif; font-size: clamp(42px,5vw,64px); font-weight: 400; line-height: 1.02; letter-spacing: -.04em; }
.auth-blade h2 em { color: #e0bf79; font-weight: 400; }
.auth-blade p { max-width: 265px; margin: 0; color: #b6ccbe; font-size: 13px; line-height: 1.7; }
.auth-blade-line { display: block; width: 45px; height: 2px; margin-top: 36px; background: #b99250; }
.auth-card[data-mode=signup] .auth-blade { transform: translateX(-78.57%); clip-path: polygon(0 0,76% 0,100% 100%,0 100%); }
.auth-card[data-mode=signup] .auth-blade-inner { padding: 50px 30% 50px 13%; }
.auth-footer { margin: 24px 0 0; color: #829a88; font-size: 9px; letter-spacing: .13em; text-align: center; }
.auth-footer span { margin: 0 9px; color: #bd9754; }
@media (max-width: 760px) {
  .auth-shell { padding: 22px 18px 26px; }
  .auth-intro { margin: 30px 0 24px; }
  .auth-card { display: flex; flex-direction: column-reverse; min-height: 0; border-radius: 18px; }
  .auth-pane { position: relative; inset: auto; width: 100%; padding: 32px 26px 36px; }
  .auth-blade, .auth-card[data-mode=signup] .auth-blade { position: relative; width: 100%; min-height: 190px; transform: none; clip-path: none; }
  .auth-blade-inner, .auth-card[data-mode=signup] .auth-blade-inner { padding: 30px 26px; }
  .auth-blade h2 { margin: 12px 0 8px; font-size: 38px; }
  .auth-blade h2 br { display: none; }
  .auth-blade-line { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .auth-blade, .auth-submit { transition: none; } }

/* Registration retains the academy's green and gold visual language. */
.auth-card[data-mode=signup] { min-height: 0; }
.auth-signup { position: relative; inset: auto; margin-left: auto; align-items: flex-start; }
.auth-signup .auth-pane-inner { margin: 0 auto; }
.signup-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.signup-fields label { margin-top: 0; }
.signup-notice { margin-top: 22px; padding: 15px; border: 1px solid #dfc99b; border-radius: 10px; background: #f4eddb; color: #665a42; font-size: 12px; line-height: 1.55; }
.signup-notice strong, .signup-links > p { color: #8a6a31; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.signup-notice p { margin: 7px 0 0; }
.auth-pane .signup-consent { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; padding: 14px; border: 1px solid #bdd2bf; border-radius: 10px; background: #eaf1e8; font-size: 11px; line-height: 1.5; }
.auth-pane .signup-consent input { flex: 0 0 17px; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #1b6749; }
.signup-form .auth-submit { margin-top: 16px; }
.signup-links { margin-top: 22px; padding-top: 16px; border-top: 1px solid #d7dfd2; }
.signup-links > p { margin: 0 0 10px; font-weight: 700; }
.signup-links a, .signup-pending { display: block; padding: 11px 13px; border: 1px solid #bdd2bf; border-radius: 9px; color: #1b6749; font-size: 12px; font-weight: 650; text-decoration: none; }
.signup-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.signup-links a span { flex: 0 0 auto; color: #638374; font-size: 9px; }
.signup-pending { margin-top: 8px; border-color: #e4d8bc; color: #897b62; font-weight: 400; }
@media (max-width: 760px) { .auth-card[data-mode=signup] { min-height: 0; } }
@media (max-width: 400px) { .signup-fields { grid-template-columns: 1fr; gap: 15px; } }

/* A restrained entrance and glint for the welcome heading. */
.auth-intro h1 { animation: auth-heading-enter .8s ease-out both; }
.auth-intro h1 em {
  background: linear-gradient(110deg, #dcb970 30%, #fff0c2 48%, #dcb970 66%);
  background-size: 240% 100%;
  background-position: 100% 0;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: auth-heading-glint 5s ease-in-out 1s infinite;
}
@keyframes auth-heading-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes auth-heading-glint {
  0%, 55% { background-position: 100% 0; }
  85%, 100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-intro h1, .auth-intro h1 em { animation: none; }
}

#welcome-signin p, #welcome-signup p { max-width: none; white-space: nowrap; font-size: clamp(10px, 1vw, 13px); }
@media (max-width: 360px) { #welcome-signin p, #welcome-signup p { white-space: normal; } }
.auth-help a, .recovery-card a { color: #1b6749; font-weight: 700; }
.recovery-shell { max-width: 520px; margin: 0 auto; padding: 30px 24px; }
.recovery-card { margin: 65px auto 0; padding: 36px; border-radius: 20px; background: #f8f6ed; box-shadow: 0 28px 80px #0006; }
.recovery-card h1 { margin: 0 0 14px; color: #13281e; font-size: 30px; }
.recovery-card label { display: block; margin: 20px 0 7px; color: #40594b; font-size: 12px; font-weight: 650; }
.recovery-card input:not([type=hidden]) { width: 100%; height: 42px; border: 0; border-bottom: 1px solid #b7c3b7; background: transparent; color: #172d21; font-size: 14px; }
