:root { color-scheme: light; --login-acid: #76b900; --login-ink: #172016; --login-paper: #f5f6f0; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--login-paper); color: var(--login-ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #577f15; outline-offset: 5px; }
[hidden] { display: none !important; }
.loginLayout { width: 100%; height: 100vh; height: 100dvh; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
.loginBrand { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 50px; padding: clamp(36px,4.5vw,80px); background: #101610; color: #f5f6f0; }
.loginBrand::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,rgba(10,17,10,.7),rgba(9,15,9,.82)),linear-gradient(110deg,#15250d,transparent); }
.loginBackdrop { position: absolute; inset: 0; z-index: -2; height: 100%; width: 100%; object-fit: cover; filter: grayscale(1); }
.loginWordmark { align-self: flex-start; font-size: clamp(44px,5.2vw,82px); font-weight: 800; letter-spacing: -.065em; line-height: 1; }
.loginBrandMessage { max-width: 540px; }
.loginEyebrow { margin: 0 0 22px; font-size: 10px; line-height: 1.5; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.loginBrand .loginEyebrow { display: flex; align-items: center; gap: 10px; color: #c1cfb6; }
.loginBrand .loginEyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: var(--login-acid); }
.loginBrandTitle { margin: 0; font-size: clamp(34px,3.6vw,58px); font-weight: 400; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.loginBrandTitle > span { display: block; color: #9ccd49; }
.loginBrandRule { height: 2px; width: 64px; background: var(--login-acid); margin-top: 36px; }
.loginBack { align-self: flex-start; font-size: 13px; color: #ccd4c5; padding: 8px 0; }
.loginBack span { color: #a0d24e; margin-right: 10px; }
.loginBack:hover { color: #fff; }
.loginPanel { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 56px clamp(32px,5vw,90px) 28px; }
.loginMobileBrand { display: none; }
.loginContent { flex-shrink: 0; width: 100%; max-width: 420px; margin: auto; padding: 32px 0; }
.loginContent:focus { outline: none; }
.loginEmblem { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid #d8e5c6; border-radius: 14px; background: #eaf1df; color: #527b0b; }
.loginEmblem svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.loginPanel .loginEyebrow { color: #657458; margin-bottom: 12px; }
h1 { margin: 0; font-size: clamp(32px,3.1vw,46px); line-height: 1.1; letter-spacing: -.045em; font-weight: 500; }
.loginIntro { color: #687063; font-size: 14px; line-height: 1.65; margin: 16px 0 30px; }
.loginField { margin-bottom: 20px; }
.loginField label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.loginField input { display: block; min-width: 0; width: 100%; height: 56px; padding: 0 16px; border-radius: 10px; border: 1px solid #cbd2c4; background: #fff; color: var(--login-ink); font-size: 16px; transition: border-color .2s,box-shadow .2s; }
.loginField input::placeholder { color: #81887a; opacity: 1; }
.loginField input:focus { outline: none; border-color: #608d20; box-shadow: 0 0 0 3px rgba(118,185,0,.14); }
.loginPassword { position: relative; }
.loginPassword input { padding-right: 58px; }
.loginPasswordToggle { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #69735f; cursor: pointer; }
.loginPasswordToggle:hover { color: #314b15; background: #eff4e8; }
.loginPasswordToggle svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.loginEyeSlash { display: none; }
.loginPasswordToggle[aria-pressed="true"] .loginEyeSlash { display: block; }
.loginRecovery { display: flex; justify-content: flex-end; margin: -2px 0 26px; font-size: 13px; }
.loginRecovery a, .loginRegister a { color: #416b08; font-weight: 600; text-underline-offset: 4px; }
.loginRecovery a:hover, .loginRegister a:hover { text-decoration: underline; }
.loginSubmit, .loginStateBack { width: 100%; min-height: 56px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--login-acid); border-radius: 10px; background: var(--login-acid); color: #122000; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s,box-shadow .2s; }
.loginSubmit:hover:not(:disabled), .loginStateBack:hover { background: #86c914; box-shadow: 0 5px 18px rgba(83,124,16,.13); }
.loginSubmit:disabled { cursor: wait; opacity: .8; }
.loginSubmitArrow { font-size: 22px; line-height: 1; }
.loginSpinner { display: none; width: 19px; height: 19px; flex-shrink: 0; border: 2px solid rgba(18,32,0,.2); border-top-color: #122000; border-radius: 50%; animation: loginSpin .7s linear infinite; }
.loginSubmit:disabled .loginSpinner { display: block; }
.loginSubmit:disabled .loginSubmitArrow { display: none; }
@keyframes loginSpin { to { transform: rotate(360deg); } }
.loginRegister { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid #dce1d6; font-size: 13px; text-align: center; line-height: 1.6; color: #747c6d; }
.loginRegister a { margin-left: 4px; display: inline-block; }
.loginFooter { text-align: center; font-size: 11px; line-height: 1.6; color: #747d6d; padding-top: 24px; }
.loginFooter span { padding: 0 8px; color: #759454; }
.loginMessages { margin-bottom: 24px; display: grid; gap: 10px; }
.loginAlert { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 10px; border: 1px solid #d2dcc5; background: #edf3e4; color: #3f5726; }
.loginAlert p { margin: 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.loginAlertIcon { display: grid; place-items: center; flex: 0 0 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: bold; }
.loginAlertError { background: #fcf0ed; border-color: #eccbc3; color: #934435; }
.loginAlertInfo { background: #edf1f2; border-color: #d1dce0; color: #415c66; }
.loginSrOnly { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.loginSkip { position: fixed; top: -100px; left: 16px; z-index: 5; padding: 12px 18px; background: var(--login-acid); color: #122000; border-radius: 8px; }
.loginSkip:focus { top: 12px; }
@media (max-width: 800px) {
  .loginLayout { grid-template-columns: minmax(0,1fr); }
  .loginBrand { display: none; }
  .loginPanel { padding: 26px 24px 20px; }
  .loginMobileBrand { display: flex; justify-content: space-between; align-items: center; gap: 18px; width: 100%; max-width: 540px; margin: 0 auto; }
  .loginMobileBrand > a:first-child { font-size: 30px; font-weight: 800; letter-spacing: -.065em; }
  .loginMobileBack { font-size: 12px; color: #5e6c53; padding: 10px 0; }
  .loginContent { padding: 40px 0 20px; }
  .loginEmblem { margin-bottom: 24px; }
  h1 { font-size: 36px; }
}
@media (max-width: 380px) {
  .loginPanel { padding-inline: 20px; }
  .loginMobileBrand > a:first-child { font-size: 27px; }
  .loginMobileBack { font-size: 11px; }
}
@media (max-height: 850px) {
  .loginPanel { padding-top: 18px; padding-bottom: 14px; }
  .loginContent { padding-top: 16px; padding-bottom: 8px; }
  .loginEmblem { display: none; }
  .loginIntro { margin: 10px 0 20px; }
  .loginField { margin-bottom: 16px; }
  .loginField label { margin-bottom: 8px; }
  .loginField input { height: 50px; }
  .loginPasswordToggle { top: 3px; right: 3px; }
  .loginRecovery { margin-bottom: 18px; }
  .loginSubmit, .loginStateBack { min-height: 50px; padding-block: 12px; }
  .loginRegister { margin-top: 18px; padding-top: 16px; }
  .loginFooter { padding-top: 14px; }
  .loginMessages { margin-bottom: 16px; }
}
@media (max-height: 620px) {
  .loginPanel { padding-top: 14px; padding-bottom: 12px; }
  .loginContent { padding-top: 12px; padding-bottom: 6px; }
  .loginPanel .loginEyebrow { display: none; }
  .loginHasForm .loginIntro { display: none; }
  .loginHasForm h1 { margin-bottom: 18px; }
  h1 { font-size: 30px; }
  .loginField { margin-bottom: 12px; }
  .loginField label { margin-bottom: 6px; }
  .loginField input { height: 46px; }
  .loginPasswordToggle { top: 1px; right: 2px; }
  .loginRecovery { margin-bottom: 14px; }
  .loginRegister { margin-top: 14px; padding-top: 12px; }
  .loginAlert { padding: 10px 12px; }
  .loginAlert p { font-size: 12px; line-height: 1.5; }
  .loginBrand { padding: 28px; gap: 24px; }
  .loginWordmark { font-size: 50px; }
  .loginBrandTitle { font-size: clamp(28px,3vw,44px); }
}
/* Short landscape screens: keep both inputs, recovery and submit in view. */
@media (max-height: 460px) and (min-width: 480px) {
  .loginLayout { grid-template-columns: minmax(0,1fr); }
  .loginBrand { display: none; }
  .loginPanel { padding: 12px 24px; }
  .loginMobileBrand { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 700px; width: 100%; margin: 0 auto; }
  .loginMobileBrand > a:first-child { font-size: 24px; font-weight: 800; letter-spacing: -.065em; }
  .loginMobileBack { font-size: 12px; padding: 6px 0; }
  .loginContent { max-width: 700px; padding-top: 8px; padding-bottom: 0; }
  h1 { font-size: 26px; }
  .loginHasForm h1 { margin-bottom: 10px; }
  #login-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 10px 18px; }
  .loginField, .loginRecovery { margin: 0; }
  .loginRecovery { justify-content: flex-start; }
  .loginSubmit { min-height: 44px; padding: 10px 16px; }
  .loginRegister { margin-top: 10px; padding-top: 8px; }
  .loginFooter { display: none; }
  .loginMessages { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
