:root {
  color-scheme: light;
  --ink: #173236;
  --muted: #778789;
  --teal: #166f67;
  --coral: #d96f54;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #f1f5f3; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(ellipse at 51% 8%, #e3f0eb 0, #f1f5f3 46%, #f5f6f4 100%); }
button, input { font: inherit; }
.login-shell { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: center; padding: max(24px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); }
.login-card { position: relative; width: min(100%, 420px); overflow: hidden; padding: 30px 34px 25px; border: 1px solid #e5ece8; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgba(24,58,53,.10); }
.brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -.7px; text-decoration: none; }
.brand-accent { color: var(--teal); }
.brand-mark { width: 29px; height: 29px; display: flex; align-items: end; justify-content: center; gap: 3px; padding: 7px; border-radius: 9px; background: var(--teal); transform: rotate(-5deg); }
.brand-mark i { width: 3px; border-radius: 3px; background: white; }
.brand-mark i:nth-child(1) { height: 7px; opacity: .72; }
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 9px; opacity: .82; }
.login-art { position: absolute; right: 24px; top: 19px; width: 124px; height: 101px; overflow: hidden; border-radius: 17px; background: #eaf5ef; }
.art-sun { position: absolute; right: 21px; top: 17px; width: 18px; height: 18px; border-radius: 50%; background: #e9b66e; }
.art-line { position: absolute; left: 18px; right: 18px; height: 1px; background: #d4e5dc; }
.art-line--one { top: 34px; }
.art-line--two { top: 56px; }
.art-line--three { top: 78px; }
.art-block { position: absolute; left: 28px; top: 45px; width: 42px; height: 42px; border-radius: 7px 7px 2px 2px; background: #58a58b; box-shadow: 20px -18px 0 -7px #c9e6d8; }
.eyebrow { margin: 49px 0 10px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
h1 { margin: 0; font-size: 30px; line-height: 1.13; letter-spacing: -1.2px; }
h1 span { color: var(--coral); }
.login-copy { margin: 9px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.5; }
form label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.password-wrap { position: relative; }
.password-wrap input { width: 100%; height: 51px; padding: 0 76px 0 14px; border: 1px solid #dbe5df; border-radius: 11px; outline: none; background: #fbfdfb; color: var(--ink); font-size: 16px; letter-spacing: .03em; transition: border-color .15s, box-shadow .15s; }
.password-wrap input:focus { border-color: #4c9a82; box-shadow: 0 0 0 4px rgba(22,111,103,.12); }
.password-wrap input[aria-invalid="true"] { border-color: #d96f54; }
.reveal-button { position: absolute; top: 0; right: 0; height: 51px; min-width: 66px; padding: 0 12px; border: 0; background: transparent; color: #52716c; font-size: 12px; font-weight: 700; cursor: pointer; }
.login-error { margin: 9px 0 0; color: #b24f3a; font-size: 12px; line-height: 1.4; }
.login-error[hidden] { display: none; }
.submit-button { width: 100%; height: 51px; display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding: 0 16px; border: 0; border-radius: 11px; background: var(--teal); color: white; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 18px rgba(22,111,103,.18); transition: background .15s, transform .15s; }
.submit-button:hover { background: #125b55; }
.submit-button:active { transform: translateY(1px); }
.submit-button:disabled { opacity: .7; cursor: wait; }
.submit-button.is-loading span:last-child { opacity: .5; }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 22px; color: #8b9996; font-size: 11px; }
.lock-icon { color: #6e9a88; font-size: 13px; }
.login-caption { margin: 17px 0 0; color: #93a09c; font-size: 11px; text-align: center; }

@media (max-width: 480px) {
  .login-shell { padding-left: 16px; padding-right: 16px; }
  .login-card { padding: 25px 23px 22px; border-radius: 19px; }
  .login-art { top: 16px; right: 17px; width: 93px; height: 77px; border-radius: 14px; }
  .art-sun { right: 16px; top: 12px; width: 14px; height: 14px; }
  .art-line { left: 13px; right: 13px; }
  .art-line--one { top: 27px; }
  .art-line--two { top: 44px; }
  .art-line--three { top: 61px; }
  .art-block { left: 21px; top: 37px; width: 32px; height: 31px; box-shadow: 15px -14px 0 -6px #c9e6d8; }
  .eyebrow { margin-top: 45px; font-size: 9px; }
  h1 { max-width: 250px; font-size: 28px; }
  .login-copy { max-width: 240px; font-size: 13px; }
  .login-foot { margin-top: 19px; }
}

@media (max-height: 650px) and (min-width: 481px) {
  .login-card { padding-top: 22px; padding-bottom: 19px; }
  .login-art { top: 14px; }
  .eyebrow { margin-top: 35px; }
  .login-copy { margin-bottom: 16px; }
}
