@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600&display=swap');

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #0a4a3a;
  --green-mid:    #117a5e;
  --green-light:  #1aad84;
  --green-pale:   #e4f5ef;
  --green-glow:   rgba(26,173,132,0.12);
  --amber-pale:   #fdf3e3;
  --amber-border: #f5c97a;
  --amber-text:   #7a4a10;
  --amber-dark:   #4a2d08;
  --blue-pale:    #e8f2fc;
  --blue-text:    #1a5a9a;
  --text-primary:   #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-tertiary:  #999;
  --bg-primary:   #ffffff;
  --bg-secondary: #f8f7f4;
  --bg-page:      #f0ede6;
  --border:       rgba(0,0,0,0.08);
  --border-mid:   rgba(0,0,0,0.15);
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:    0 8px 24px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary:   #edeae4;
    --text-secondary: #a09b94;
    --text-tertiary:  #6b6560;
    --bg-primary:   #1c1c1a;
    --bg-secondary: #242420;
    --bg-page:      #141412;
    --border:       rgba(255,255,255,0.08);
    --border-mid:   rgba(255,255,255,0.14);
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.3);
    --shadow-md:    0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg:    0 8px 24px rgba(0,0,0,0.5);
    --green-pale:   #0c2e22;
    --green-glow:   rgba(26,173,132,0.08);
    --amber-pale:   #271c08;
    --amber-border: #6a4010;
    --amber-text:   #e0aa60;
    --amber-dark:   #f0cc90;
    --blue-pale:    #0c1e30;
    --blue-text:    #6aaae0;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* ══════════════════════════════════════════════════════════════
   KIRJAUTUMINEN
══════════════════════════════════════════════════════════════ */

#login-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.login-hero {
  background:
    linear-gradient(175deg, rgba(0,0,0,0.45) 0%, rgba(10,74,58,0.75) 100%),
    url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1200&q=80') center/cover no-repeat;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 5rem;
}

.login-hero-content { text-align: center; color: #fff; }

.hero-icon {
  font-size: 56px;
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.login-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 0.375rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.login-hero p {
  font-size: 15px;
  opacity: 0.8;
  letter-spacing: 0.3px;
}

.login-card {
  background: var(--bg-primary);
  border-radius: 24px 24px 0 0;
  padding: 2rem 1.5rem 2.5rem;
  margin-top: -2rem;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.12);
}

.login-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.login-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 0.5rem;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px rgba(17,122,94,0.35);
  transition: opacity 0.15s, transform 0.1s;
}

.login-btn:active {
  opacity: 0.9;
  transform: scale(0.99);
}

.login-hint {
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 1.25rem;
}

.login-hint a {
  color: var(--green-mid);
  text-decoration: none;
  font-weight: 500;
}

.login-hint a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════════════════════════ */

.topbar {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}

.topbar-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.2px;
}

.topbar-title i {
  font-size: 22px;
  color: var(--green-light);
}

.topbar-logout {
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 7px 14px;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.topbar-logout:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════
   NAVIGAATIO
══════════════════════════════════════════════════════════════ */

nav {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0.25rem;
}

nav::-webkit-scrollbar { display: none; }

nav button {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 0 1rem;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  flex-shrink: 0;
  transition: color 0.15s;
}

nav button i { font-size: 16px; }

nav button.active {
  color: var(--green-mid);
  border-bottom-color: var(--green-light);
  font-weight: 600;
}

nav button:hover:not(.active) { color: var(--text-primary); }

/* ══════════════════════════════════════════════════════════════
   SIVUT
══════════════════════════════════════════════════════════════ */

.page {
  display: none;
  padding: 1.25rem 1rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.page.active { display: block; }

.section-header {
  font-size: 22px;
  font-weight: 600;
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: 1.25rem;
  letter-spacing: -0.3px;
}

/* ══════════════════════════════════════════════════════════════
   KORTIT
══════════════════════════════════════════════════════════════ */

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: var(--shadow-md); }

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title i {
  font-size: 18px;
  color: var(--green-light);
  background: var(--green-pale);
  padding: 5px;
  border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════════════════════
   HUOMIOLAATIKKO
══════════════════════════════════════════════════════════════ */

.notice-box {
  background: var(--amber-pale);
  border: 1px solid var(--amber-border);
  border-left: 4px solid var(--amber-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.nb-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notice-list { list-style: none; }

.notice-list li {
  font-size: 13.5px;
  color: var(--amber-text);
  padding: 5px 0 5px 1.5rem;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid rgba(245,201,122,0.3);
}

.notice-list li:last-child { border-bottom: none; }

.notice-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--amber-border);
  font-size: 12px;
  top: 6px;
}

/* ══════════════════════════════════════════════════════════════
   SÄÄ
══════════════════════════════════════════════════════════════ */

.weather-now {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.weather-temp {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1;
  font-family: 'Playfair Display', Georgia, serif;
}

.weather-desc {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

.weather-loc {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.weather-icon-large {
  font-size: 44px;
  color: #4a9de0;
  margin-left: auto;
  filter: drop-shadow(0 2px 4px rgba(74,157,224,0.3));
}

.forecast-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.fc-day {
  text-align: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 8px 4px;
}

.fc-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.fc-icon {
  font-size: 20px;
  color: var(--green-light);
  display: block;
  margin: 2px 0;
}

.fc-sun { color: #f0a020; }
.fc-rain-color { color: #4a9de0; }
.fc-temp { font-size: 13px; font-weight: 600; margin-top: 3px; }
.fc-rain { font-size: 11px; color: #4a80c0; margin-top: 1px; }

/* ══════════════════════════════════════════════════════════════
   TAPAHTUMAT
══════════════════════════════════════════════════════════════ */

.event-list { list-style: none; }

.event-item {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-item:last-child { border-bottom: none; }

.event-title {
  font-size: 14px;
  font-weight: 600;
}

.event-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.place-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.2px;
}

.pb-viitasaari { background: var(--green-pale); color: var(--green-dark); }
.pb-saarijarvi { background: var(--blue-pale); color: var(--blue-text); }

.more-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--green-mid);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0.75rem;
  padding: 6px 12px;
  background: var(--green-pale);
  border-radius: var(--radius-md);
  transition: background 0.15s;
}

.more-link:hover { background: var(--green-glow); }

/* ══════════════════════════════════════════════════════════════
   KALENTERI
══════════════════════════════════════════════════════════════ */

.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-month-nav button {
  background: var(--bg-secondary);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 6px 14px;
  font-size: 16px;
  min-height: 36px;
  color: var(--text-primary);
  transition: background 0.15s;
}

.cal-month-nav button:hover { background: var(--green-pale); }

.cal-month-title {
  font-size: 15px;
  font-weight: 600;
  font-family: 'Playfair Display', Georgia, serif;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  padding: 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cal-day {
  min-height: 42px;
  background: var(--bg-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px;
  transition: background 0.1s;
}

.cal-day.empty { background: transparent; }

.cal-day.today {
  background: var(--green-pale);
  border-color: var(--green-light);
}

.cal-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.cal-day.today .cal-num { color: var(--green-mid); }

.cal-event {
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: #fff;
  border-radius: 3px;
  padding: 1px 3px;
  font-size: 9px;
  font-weight: 600;
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.varaus-item {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}

.varaus-item:last-child { border-bottom: none; }
.vi-date { font-weight: 600; display: block; margin-bottom: 3px; font-size: 14px; }
.vi-name { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   KÄYTTÖOHJEET
══════════════════════════════════════════════════════════════ */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-item {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.125rem;
  cursor: pointer;
  min-height: 96px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.15s;
}

.guide-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
  transform: translateY(-1px);
}

.guide-item:active { transform: scale(0.98); }

.gi-icon {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--green-light);
  background: var(--green-pale);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gi-title { font-size: 14px; font-weight: 600; margin-top: 6px; }
.gi-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.guide-detail { display: none; }
.guide-detail.active { display: block; }

.back-btn {
  font-size: 14px;
  font-weight: 500;
  color: var(--green-mid);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  min-height: 44px;
  background: none;
  border: none;
  font-family: inherit;
  transition: gap 0.15s;
}

.back-btn:hover { gap: 10px; }

.guide-steps { list-style: none; counter-reset: step; }

.guide-steps li {
  counter-increment: step;
  padding: 0.875rem 0 0.875rem 3rem;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  position: relative;
  line-height: 1.6;
}

.guide-steps li:last-child { border-bottom: none; }

.guide-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.875rem;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(17,122,94,0.3);
}

/* ══════════════════════════════════════════════════════════════
   LOMAKKEET
══════════════════════════════════════════════════════════════ */

.form-row { margin-bottom: 1rem; }

.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  padding: 11px 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  appearance: auto;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-row textarea { height: 96px; resize: vertical; }

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.submit-btn {
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  min-height: 46px;
  box-shadow: 0 4px 12px rgba(17,122,94,0.3);
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.2px;
}

.submit-btn:hover { opacity: 0.92; }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.5; cursor: default; transform: none; }

/* ══════════════════════════════════════════════════════════════
   LISTAT
══════════════════════════════════════════════════════════════ */

.entry-list { list-style: none; }

.entry-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.entry-item:last-child { border-bottom: none; }

.entry-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.entry-name { font-weight: 600; color: var(--text-primary); font-size: 13px; }
.entry-text { font-size: 14px; line-height: 1.6; }

.status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-open   { background: var(--amber-pale); color: var(--amber-text); border: 1px solid var(--amber-border); }
.badge-done   { background: var(--green-pale); color: var(--green-dark); border: 1px solid rgba(26,173,132,0.3); }
.badge-varaus { background: var(--blue-pale); color: var(--blue-text); border: 1px solid rgba(26,130,224,0.2); }

/* ══════════════════════════════════════════════════════════════
   YHTEYSTIEDOT
══════════════════════════════════════════════════════════════ */

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-of-type { border-bottom: none; }

.info-row > i {
  font-size: 20px;
  color: var(--green-light);
  background: var(--green-pale);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-row-content { flex: 1; min-width: 0; }
.info-row-label { font-size: 11px; font-weight: 600; color: var(--text-tertiary); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.info-row-value { font-size: 14px; line-height: 1.5; word-break: break-word; font-weight: 500; }
.info-row-value a { color: var(--green-mid); text-decoration: none; font-weight: 500; }
.info-row-value a:hover { text-decoration: underline; }

.directions-step {
  display: flex;
  gap: 14px;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}

.directions-step:last-child { border-bottom: none; }

.dir-num {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(17,122,94,0.3);
}

.dir-text { font-size: 14px; line-height: 1.5; font-weight: 500; }
.dir-detail { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  min-height: 50px;
  margin-top: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(17,122,94,0.3);
  letter-spacing: 0.2px;
  transition: opacity 0.15s;
}

.map-btn:hover { opacity: 0.9; }

/* ══════════════════════════════════════════════════════════════
   VAHVISTUSPAINIKE (omistaja)
══════════════════════════════════════════════════════════════ */

.confirm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.625rem;
  padding: 7px 14px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(26,173,132,0.4);
  background: var(--green-pale);
  color: var(--green-dark);
  cursor: pointer;
  min-height: 34px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s;
}

.confirm-btn:hover { background: var(--green-glow); border-color: var(--green-light); }

.confirm-btn.confirmed {
  border-color: var(--amber-border);
  background: var(--amber-pale);
  color: var(--amber-text);
}

.confirm-btn:disabled { opacity: 0.5; cursor: default; }

/* ══════════════════════════════════════════════════════════════
   APULUOKAT
══════════════════════════════════════════════════════════════ */

.loading-text {
  font-size: 14px;
  color: var(--text-tertiary);
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loading-text::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-mid);
  border-top-color: var(--green-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.success-msg {
  background: var(--green-pale);
  color: var(--green-dark);
  border: 1px solid rgba(26,173,132,0.3);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 0.875rem;
  display: none;
  align-items: center;
  gap: 8px;
}

.success-msg::before { content: '✓'; font-weight: 700; }

.error-msg {
  color: #c0392b;
  font-size: 13px;
  font-weight: 500;
  margin-top: 0.5rem;
  padding: 8px 12px;
  background: #fdf0ef;
  border-radius: var(--radius-sm);
  min-height: 0;
}

.error-msg:empty { display: none; }

/* ══════════════════════════════════════════════════════════════
   DESKTOP
══════════════════════════════════════════════════════════════ */

@media (min-width: 600px) {
  .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page { padding: 1.75rem 1.5rem 3rem; }
  .forecast-row { gap: 10px; }
  .login-card { padding: 2.5rem 2rem 3rem; max-width: 480px; margin: -2rem auto 0; border-radius: var(--radius-xl); }
  .login-hero { min-height: 45vh; }
}
