:root {
  --pine: #155743;
  --deep: #143d36;
  --leaf: #65b75c;
  --mint: #d8f2d8;
  --paper: #ffffff;
  --ink: #213731;
  --muted: #688077;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #f6faf5;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }

.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 254px; height: auto; max-width: 100%; mix-blend-mode: multiply; clip-path: inset(6% 0 0 0); }

.login-page { background: #f5faf3; }
.login-shell { min-height: 100vh; min-height: 100dvh; overflow: hidden; isolation: isolate; position: relative; background: linear-gradient(145deg,#f8fcf6 7%,#edf8ed 49%,#def2e3 100%); }
.ambient { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; z-index: -1; }
.ambient-one { width: 850px; height: 850px; left: -260px; bottom: -420px; background: radial-gradient(circle,#bcebb8a6,#bcebb800 65%); }
.ambient-two { width: 720px; height: 720px; right: -280px; top: -410px; background: radial-gradient(circle,#baf1d2a6,#baf1d200 68%); }
.login-content { max-width: 1290px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 32px clamp(24px,5.2vw,72px) 24px; display: flex; flex-direction: column; }
.login-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.staff-tag { font-size: 11px; font-weight: 800; letter-spacing: .21em; color: var(--pine); display: flex; align-items: center; gap: 10px; }
.tag-dot { width: 7px; height: 7px; display: inline-block; border-radius: 99px; background: #6ec65e; box-shadow: 0 0 0 4px #6ec65e2e; }
.login-grid { flex: 1; display: grid; grid-template-columns: minmax(0,1.04fr) minmax(365px,.86fr); align-items: center; column-gap: clamp(32px,6vw,110px); }
.mascot-column { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding-top: 28px; }
.mascot-halo { position: absolute; width: min(85%,460px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 28%,#d6fac8 2%,#a9eab9 59%,#71dfcf 98%); filter: blur(36px); opacity: .24; z-index: -1; }
.cali-art { display: block; width: min(100%, 535px); height: auto; max-height: min(64vh,550px); object-fit: contain; object-position: center; filter: drop-shadow(0 20px 24px #275d3a1c); }
.mascot-caption { display: flex; align-items: center; justify-content: center; gap: 12px; color: #548670; font-size: 11px; font-weight: 780; letter-spacing: .22em; padding-top: 10px; }
.caption-line { width: 32px; height: 1px; background: #80b39a; }
.login-card { padding: clamp(28px,3.6vw,50px); border: 1px solid #fff; border-radius: 24px; background: #fffffff2; box-shadow: 0 24px 70px #235d4930,0 2px 8px #235d4910; width: 100%; max-width: 480px; justify-self: center; }
.card-eyebrow { display: inline-flex; gap: 9px; align-items: center; font-size: 11px; font-weight: 790; letter-spacing: .17em; color: #378765; }
.eyebrow-mark { width: 18px; height: 4px; border-radius: 5px; background: #74c46c; }
.login-card h1 { font-size: clamp(28px,3.2vw,42px); line-height: 1.12; color: var(--deep); letter-spacing: -.035em; margin: 19px 0 16px; }
.card-description { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0 0 33px; }
.login-card label { display: block; font-size: 13px; font-weight: 750; color: #315549; margin-bottom: 9px; }
.login-card input { display: block; width: 100%; height: 54px; padding: 0 16px; border: 1px solid #c8dcd1; border-radius: 10px; background: #fff; color: var(--deep); outline-offset: 3px; font-size: 16px; }
.login-card input:focus-visible { border-color: #248655; outline: 2px solid #91d8b3; }
.login-card input::placeholder { color: #96a8a0; }
.primary-button { margin-top: 16px; width: 100%; padding: 16px 18px; border: 0; border-radius: 10px; background: var(--pine); color: white; font-weight: 720; font-size: 16px; box-shadow: 0 8px 20px #1557432e; display: flex; align-items: center; justify-content: center; gap: 12px; }
.primary-button:hover { background: #104633; }
.primary-button:focus-visible, .logout-button:focus-visible { outline: 3px solid #88d89b; outline-offset: 3px; }
.secure-label { display: flex; justify-content: center; align-items: center; gap: 7px; color: #869b92; letter-spacing: .14em; font-weight: 750; font-size: 10px; margin-top: 29px; }
.secure-label svg { width: 16px; height: 16px; }
.error { color: #a3233b; background: #fff0f1; border-radius: 9px; padding: 11px 12px; font-size: 13px; margin: -9px 0 18px; }
.login-footer { padding-top: 16px; display: flex; justify-content: space-between; color: #7e998e; font-size: 12px; gap: 20px; }

.assistant-page { background: #f4f9f4; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-header { background: #fff; border-bottom: 1px solid #dae8de; padding: 16px clamp(20px,4vw,64px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.app-header .brand-logo { width: 220px; }
.app-controls { display: flex; align-items: center; gap: 24px; }
.app-controls form { margin: 0; }
.authorized-label { color: #58836c; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; }
.logout-button { border: 1px solid #b7d5c0; color: var(--pine); background: #f4faf4; padding: 10px 20px; border-radius: 9px; font-weight: 750; font-size: 13px; }
.logout-button:hover { background: #e8f4e9; }
.assistant-main { width: 100%; max-width: 1200px; margin: auto; padding: clamp(24px,4vw,56px); flex: 1; display: flex; align-items: center; }
.assistant-welcome { width: 100%; border-radius: 32px; background: linear-gradient(115deg,#fff 15%,#f1fbef 100%); box-shadow: 0 15px 60px #205e3814; border: 1px solid #e2eee3; display: grid; grid-template-columns: 1.1fr .8fr; align-items: center; overflow: hidden; padding: clamp(25px,5vw,70px); gap: 32px; }
.intro-eyebrow { font-size: 11px; letter-spacing: .2em; color: #439a65; font-weight: 800; }
.assistant-intro h1 { color: var(--deep); font-size: clamp(40px,5vw,70px); letter-spacing: -.05em; margin: 18px 0 14px; line-height: 1.05; }
.green-period { color: #6fc76e; }
.assistant-intro p { font-size: clamp(17px,1.8vw,21px); line-height: 1.65; max-width: 580px; color: #526b5b; }
.assistant-intro strong { color: var(--pine); }
.availability-note { margin-top: 34px; font-size: 12px; color: #7b9485; display: flex; align-items: center; gap: 9px; }
.availability-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ac87b; }
.assistant-art { width: 100%; max-height: 390px; object-fit: contain; }
.setup-note { position: fixed; z-index: 10; right: 26px; bottom: 25px; max-width: 350px; padding: 20px 23px; background: white; border: 1px solid #c7dfca; border-radius: 16px; box-shadow: 0 12px 35px #183f2b21; }
.setup-note h2 { margin: 0 0 8px; font-size: 18px; color: var(--pine); }
.setup-note p { margin: 0; font-size: 13px; line-height: 1.5; color: #667a6b; }
.app-footer { padding: 22px 48px; display: flex; gap: 20px; justify-content: space-between; color: #91a499; font-size: 12px; }

@media (max-width: 850px) {
  .login-content { padding: 24px; }
  .login-grid { grid-template-columns: minmax(0,.9fr) minmax(320px,1fr); column-gap: 18px; }
  .cali-art { max-height: 460px; }
  .login-card { padding: 28px; }
  .assistant-welcome { padding: 35px; gap: 12px; }
}

@media (max-width: 670px) {
  .login-shell { overflow: visible; }
  .login-content { padding: 22px 18px 26px; min-height: 100dvh; }
  .login-header { justify-content: center; }
  .brand-logo { width: 225px; }
  .staff-tag { display: none; }
  .login-grid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 0 0; }
  .mascot-column { padding: 0; width: 100%; }
  .cali-art { width: min(100%,310px); max-height: 300px; }
  .mascot-caption { display: none; }
  .login-card { max-width: 460px; padding: 25px 23px; border-radius: 20px; }
  .login-card h1 { font-size: 30px; margin: 13px 0 10px; }
  .card-description { margin-bottom: 22px; }
  .secure-label { margin-top: 18px; }
  .login-footer { justify-content: center; font-size: 10px; margin-top: 20px; }
  .login-footer span:first-child { display: none; }
  .app-header { padding: 12px 16px; }
  .authorized-label { display: none; }
  .app-header .brand-logo { width: 180px; }
  .logout-button { padding: 9px 12px; white-space: nowrap; }
  .assistant-main { padding: 18px; align-items: flex-start; }
  .assistant-welcome { display: flex; flex-direction: column-reverse; padding: 20px 18px 28px; border-radius: 18px; gap: 8px; }
  .assistant-art { width: min(100%,210px); max-height: 210px; }
  .assistant-intro h1 { font-size: 39px; }
  .assistant-intro p { font-size: 16px; }
  .availability-note { margin-top: 16px; }
  .app-footer { padding: 16px; font-size: 10px; }
  .setup-note { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
