body:has(#auth-screen:not([hidden])) > .top {display:none;}
#auth-screen:not([hidden]) {min-height:100dvh;display:flex;flex-direction:column;color:var(--text);}
#auth-screen .welcome {flex:1 0 auto;display:grid;align-content:center;align-items:center;}
#auth-screen .auth-card label {font-size:13px;margin:9px 0 3px;}
#auth-screen .auth-card input {min-height:44px;padding:9px 13px;background:var(--field);color:var(--text);}
#auth-screen .auth-card input::placeholder {color:var(--muted);}
#auth-screen .auth-card .full {min-height:42px;}
#auth-screen .auth-card .ghost {border-color:var(--line-strong);}
#auth-screen .tab-bar {gap:16px;}
#auth-screen .auth-card:has(#auth-form:not([hidden]) #signup-fields[hidden]) .tab-bar,
#auth-screen .auth-card:has(.tab[data-auth="signup"].active) :is(.splash-create,.splash-separator) {display:none;}
#auth-screen .auth-card:has(#auth-form:not([hidden]) #signup-fields[hidden]) :is(#auth-title,#auth-description) {
  position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
#auth-screen .splash-password-row {display:flex;align-items:center;gap:6px;}
#auth-screen .splash-password-row input {min-width:0;flex:1;}
#auth-screen .splash-password-toggle {flex:none;min-height:36px;}
#auth-screen #forgot:not([hidden]) {display:block;margin:6px 0 12px auto;color:var(--red);font-size:13px;}
#auth-screen .splash-separator {display:flex;align-items:center;gap:12px;margin:12px 0;color:var(--muted);font-size:13px;}
#auth-screen .splash-separator::before,#auth-screen .splash-separator::after {content:'';flex:1;height:1px;background:var(--line);}
#auth-screen .fine {font-size:12px;line-height:1.45;color:var(--muted);}
#auth-screen .splash-donate {margin-top:12px;}
#auth-screen :is(button,input,a):focus-visible {outline:2px solid var(--red);outline-offset:2px;}

connections-weather{display:block;margin:0 0 12px}
.splash-weather{width:100%;margin:0;padding:16px 20px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text)}
.splash-weather-heading{display:flex;align-items:center;gap:8px}
.splash-weather-heading{justify-content:space-between;flex-wrap:wrap}
.splash-weather-heading h2{margin:0;font-size:1rem}
.splash-weather-heading a{font-size:.78rem;color:var(--muted);text-decoration:underline}
.splash-weather [data-weather-report]{margin:10px 0 0;line-height:1.5}
.splash-weather [data-weather-report]:not([hidden]){display:flex;align-items:center;gap:14px}
.splash-weather [data-weather-report] small{display:block;color:var(--muted)}
.weather-art{display:grid;place-items:center;flex:0 0 62px;height:62px;border-radius:14px;font-size:2rem;background:#677786}
.weather-art-sun{background:linear-gradient(150deg,#6bb9e4,#f4d092)}
.weather-art-night{background:linear-gradient(150deg,#2c3e76,#536792)}
.weather-art-snow{background:linear-gradient(150deg,#80a8c8,#dbe7ef)}
.weather-art-rain{background:linear-gradient(150deg,#4c6381,#7b9bad)}
.splash-weather [data-weather-status]{margin:6px 0 0}
.splash-weather .weather-locate{display:inline-flex;align-items:center;gap:5px;margin-top:8px;min-height:32px}
.splash-weather [data-weather-status]:empty{display:none}

/* Public welcome page. Auth fields keep the same controls and form states. */
#auth-screen {
  --bg:#fff;--surface:#fff;--field:#f8f8f9;
  --strong:#202226;--text:#292b30;--muted:#525762;--faint:#626875;
  --line:#e0e2e6;--line-strong:#adb2bc;--hover:#f3f4f6;
  --red:#ad1728;--red-fill:#bd2031;--red-dark:#981526;--ring:#bd203133;
  --danger-line:#ac2130;--danger-bg:#fff0f1;
  background:#fff;color-scheme:light;
}
.splash-header {
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:12px clamp(18px,5vw,88px);border-bottom:1px solid var(--line);
}
.splash-header .splash-brand,.splash-header nav {display:flex;align-items:center;gap:10px;}
.splash-header .splash-brand img {width:40px;height:40px;margin:0;filter:none;}
.splash-header .splash-wordmark {font-size:clamp(21px,3vw,30px);font-style:normal;text-shadow:none;letter-spacing:-.7px;}
#auth-screen .welcome {
  width:min(100%,1440px);margin:0 auto;padding:clamp(20px,4vw,64px);
  grid-template-columns:minmax(0,1fr) minmax(0,1.14fr);grid-template-rows:auto 1fr;
  gap:22px clamp(24px,5vw,76px);
}
#auth-screen .splash-intro {grid-column:1;grid-row:1;}
#auth-screen .splash-tagline {
  text-align:left;font-size:clamp(32px,4.2vw,62px);font-weight:800;font-style:normal;
  letter-spacing:-.045em;line-height:1.04;margin:0 0 15px;
}
#auth-screen .splash-tagline::after {display:none;}
#auth-screen .splash-subtitle {text-align:left;font-size:clamp(15px,1.6vw,19px);margin:0;}
#auth-screen .splash-art {grid-column:2;grid-row:1 / 3;align-self:stretch;}
#auth-screen .splash-art img {width:100%;height:100%;min-height:440px;max-height:760px;object-fit:cover;border-radius:22px;}
#auth-screen .auth-card {
  grid-column:1;grid-row:2;align-self:start;max-width:480px;margin:0;padding:0;
  border:0;border-radius:0;background:none;box-shadow:none;
}
#auth-screen .auth-card input,#auth-screen .auth-card .full,#auth-screen .splash-password-toggle {border-radius:9px;}
#auth-screen .auth-card .primary,#auth-screen .splash-header .primary {color:#fff;background:var(--red-fill);border-color:var(--red-fill);box-shadow:none;}
#auth-screen .site-foot {padding:18px clamp(18px,5vw,88px);border-top:1px solid var(--line);color:var(--muted);background:#fff;}
@media (max-width:760px) {
  #auth-screen .welcome {display:flex;flex-direction:column;align-items:stretch;gap:20px;}
  #auth-screen .auth-card {order:1;max-width:none;}
  #auth-screen .splash-art {order:2;}
  #auth-screen .splash-art img {height:clamp(180px,48vw,320px);min-height:0;}
}
