/* Gaya "Rumah Kaca": terang & lega, menu samping (menu bawah di HP),
   kartu tanaman bergambar pot terbelah, tombol siram besar. */
:root {
  --bg: #eef3ef;
  --surface: #ffffff;
  --surface-2: #f5f8f6;
  --ink: #1b2a22;
  --muted: #66776d;
  --line: #dde6e0;
  --green: #1f8a63;
  --green-dark: #17704f;
  --green-soft: #e1f2ea;
  --amber: #b36d10;
  --amber-soft: #fbf0dc;
  --red: #c0392f;
  --red-soft: #fbe7e5;
  --blue: #2f6db0;
  --blue-soft: #e6eefa;
  --radius: 14px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3 { text-wrap: balance; }

a, button, select, input, summary { font-family: inherit; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.muted { color: var(--muted); }

/* ---------- Kerangka: menu samping + konten ---------- */
.layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  padding: 0 8px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--green);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px 11px;
  border-radius: 50% 50% 50% 0;
  background: #fff;
  transform: rotate(-45deg);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.side-nav a:hover { background: var(--surface-2); color: var(--ink); }

.side-nav a.active { background: var(--green-soft); color: var(--green-dark); }

.nav-icon {
  width: 20px;
  text-align: center;
  font-size: 15px;
}

.side-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.side-user-name {
  flex: 1;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 10px;
  background: var(--surface);
}

.btn-logout:hover { color: var(--red); border-color: var(--red-soft); }

.mobile-only { display: none; }

.main {
  padding-block: 28px 48px;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1280px;
  width: 100%;
  min-width: 0; /* tabel & grafik lebar tidak boleh melebarkan halaman di HP */
}

[hidden] { display: none !important; }

/* ---------- Bagian atas & ringkasan ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#last-updated {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}

.device-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.device-pill.online { background: var(--green-soft); color: var(--green-dark); border-color: transparent; }
.device-pill.offline { background: var(--red-soft); color: var(--red); border-color: transparent; }

.banner {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
}

.banner-danger { background: var(--red-soft); color: #8c1d18; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-value small {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0;
}

/* ---------- Kartu tanaman ---------- */
.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.section-sub {
  margin: 4px 0 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.plants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.plant-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plant-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.plant-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.plant-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.freq-badge {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pot-wrap {
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-radius: 14px;
  padding: 10px 0 4px;
}

.pot-svg {
  width: 170px;
  max-width: 100%;
  height: auto;
  display: block;
}

.plant-reading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.reading-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.soil-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.soil-chip.soil-dry { background: var(--red-soft); color: var(--red); }
.soil-chip.soil-normal { background: var(--green-soft); color: var(--green-dark); }
.soil-chip.soil-wet { background: var(--blue-soft); color: var(--blue); }
.soil-chip.soil-unknown { background: var(--surface-2); color: var(--muted); }

.soil-dry { color: var(--red); }

.drops {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.drops span { margin-left: 4px; }

.drop {
  width: 11px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: inline-block;
  border: 2px solid var(--blue);
}

.drop-done { background: var(--blue); }
.drop-due { background: var(--amber-soft); border-color: var(--amber); }
.drop-missed { border-color: var(--red); background: var(--red-soft); }
.drop-upcoming { border-color: #9cc0e3; }
.drop-inactive { border-color: #c7d0ca; }

.plant-forecast {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12.5px;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 9px 12px;
}

.next-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.next-row > span { white-space: nowrap; }

.next-row strong {
  color: var(--ink);
  text-align: right;
}

.next-row strong .muted {
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.plant-note {
  margin: 0;
  font-size: 12px;
  color: var(--amber);
  text-align: center;
}

.plant-actions {
  display: flex;
  gap: 8px;
}

.btn-water {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-water:hover:not(:disabled) { background: var(--green-dark); }

.btn-water:disabled {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
}

.plant-details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: auto; /* kartu sama tinggi: detail selalu di dasar kartu */
}

.plant-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  list-style: none;
}

.plant-details summary::-webkit-details-marker { display: none; }
.plant-details summary::after { content: " ▾"; }
.plant-details[open] summary::after { content: " ▴"; }

.plant-details[open] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plant-desc {
  margin: 0;
  font-size: 13px;
  color: #3d5045;
  line-height: 1.55;
}

.plant-inactive .pot-wrap { filter: saturate(0.5); }

.notice {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
}

.notice-warn { background: var(--amber-soft); color: #7a4d0b; }
.notice-danger { background: var(--red-soft); color: #8c1d18; }
.notice-info { background: var(--blue-soft); color: #1d4f86; }

.slot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
}

.slot-time {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
}

.slot-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.slot-name { font-size: 12.5px; font-weight: 700; }
.slot-detail { font-size: 12px; color: var(--muted); }
.slot-badge { font-weight: 800; color: var(--muted); }

.slot-done { background: var(--green-soft); }
.slot-done .slot-badge { color: var(--green); }
.slot-due { background: var(--amber-soft); }
.slot-due .slot-badge { color: var(--amber); }
.slot-missed { background: var(--red-soft); }
.slot-missed .slot-badge { color: var(--red); }
.slot-inactive { opacity: 0.6; }

.plant-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.plant-meta dt {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.plant-meta dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.plant-meta .meta-wide { grid-column: 1 / -1; }

/* ---------- Tombol & formulir ---------- */
.btn-primary, .btn-secondary, .btn-icon {
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { background: #b9c9c0; cursor: not-allowed; }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--green); color: var(--green-dark); }

.btn-icon { background: var(--surface); border-color: #e7b9b4; color: var(--red); padding: 7px 11px; }

.btn-export {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.btn-export:hover { background: var(--green-dark); }
.btn-export-all { background: var(--ink); }
.btn-export-all:hover { background: #2d3f35; }
.btn-danger { background: var(--surface); color: var(--red); border: 1px solid #e7b9b4; }
.btn-danger:hover { background: var(--red-soft); }

.btn-delete-row {
  background: none;
  border: 1px solid #e7b9b4;
  color: var(--red);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: end;
}

.settings-form label, #plant-form label, #water-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.settings-form label.checkbox, #plant-form label.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

input[type="number"], input[type="text"], input[type="password"], input[type="time"], select {
  font-size: 14px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--green); }

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

.form-message { font-size: 13px; margin: 0; }
.form-message:empty { display: none; }
.form-message.ok { color: var(--green-dark); }
.form-message.error { color: var(--red); }

.config-state { font-size: 12.5px; font-weight: 700; }
.config-state.ok { color: var(--green-dark); }
.config-state.pending { color: var(--amber); }
.config-state.warn { color: var(--red); }

/* ---------- Dialog ---------- */
dialog {
  border: none;
  border-radius: 18px;
  padding: 24px;
  width: min(420px, calc(100vw - 32px));
  box-shadow: 0 20px 60px rgba(20, 35, 27, 0.25);
  color: var(--ink);
}

dialog::backdrop { background: rgba(20, 35, 27, 0.45); }

#plant-form, #water-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#plant-form h2, #water-form h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

#plant-form fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#plant-form legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 4px;
}

.times-list { display: flex; flex-direction: column; gap: 8px; }
.time-row { display: flex; gap: 8px; }
.time-row input { flex: 1; }

/* ---------- Panel umum (grafik, LSTM, perbandingan, riwayat) ---------- */
.panel {
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.panel h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 14px 0 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-head h3 { margin: 0; }
.panel-head-gap { margin-top: 24px; }

.panel-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.inline-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.segmented {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}

.segmented button {
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 9px;
  cursor: pointer;
}

.segmented button.active {
  background: var(--surface);
  color: var(--green-dark);
  box-shadow: 0 1px 3px rgba(27, 42, 34, 0.12);
}

.chart-box { position: relative; height: 340px; }
.chart-box-small { height: 240px; }

.lstm-status { display: flex; flex-direction: column; gap: 8px; }

.lstm-progress {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plant-soil-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}

.label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.soil-bar {
  height: 8px;
  background: #e2e9e4;
  border-radius: 999px;
  overflow: hidden;
}

.soil-bar-fill { height: 100%; border-radius: 999px; transition: width 0.4s; }
.soil-bar-fill.soil-normal { background: var(--green); }

.runs { font-size: 13px; line-height: 1.7; margin: 0; }
.run-ok { color: var(--green-dark); }
.run-skip { color: var(--muted); }
.run-error { color: var(--red); }

/* ---------- Tabel ---------- */
.table-scroll { overflow-x: auto; }

.table-tall { max-height: 420px; overflow-y: auto; }

.table-tall thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
}

tbody tr:hover { background: var(--surface-2); }

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
}

.trigger-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.trigger-badge.trigger-kering { background: var(--red-soft); color: var(--red); }
.trigger-badge.trigger-manual { background: var(--blue-soft); color: var(--blue); }

/* ---------- Layar kecil: menu pindah ke bawah ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }

  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    z-index: 20;
    flex-direction: row;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    border-right: none;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(27, 42, 34, 0.06);
  }

  .brand, .side-user { display: none; }

  .side-nav {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    overflow-x: auto;
  }

  .side-nav a {
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
    font-size: 10.5px;
    min-width: 56px;
    text-align: center;
  }

  .nav-icon { font-size: 17px; }

  .mobile-only { display: inline-block; }

  .main {
    padding-block: 20px 96px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .topbar h1 { font-size: 22px; }
}

@media (max-width: 520px) {
  .stat-value { font-size: 22px; }
  .plant-meta { grid-template-columns: 1fr; }
  .chart-box { height: 280px; }
  .panel { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Halaman login ---------- */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-block: 32px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.login-shell {
  width: 100%;
  max-width: 940px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(27, 42, 34, 0.12);
}

.login-hero {
  background: radial-gradient(circle at 20% 0%, #23966c 0%, #17704f 55%, #125c41 100%);
  color: #fff;
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand-light { padding: 0; color: #fff; }
.brand-light .brand-mark { background: rgba(255, 255, 255, 0.18); }

.login-hero-text h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.login-hero-text p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14.5px;
  max-width: 40ch;
}

.login-pots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 12px 10px;
}

.login-pot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.login-pot svg { width: 100%; max-width: 110px; height: auto; display: block; }
.login-pot figcaption { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }

.login-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
}

.login-features li { display: flex; gap: 10px; align-items: baseline; }
.login-features li::before { content: "✓"; font-weight: 800; color: #9be7c2; }

.login-box {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.login-box h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.login-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.login-subtitle code {
  font-size: 12.5px;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 6px;
}

.login-error {
  background: var(--red-soft);
  color: #8c1d18;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
}

.login-box form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-box label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.login-box input { font-size: 15px; padding: 12px 13px; width: 100%; }

.password-field { position: relative; display: block; }
.password-field input { padding-right: 104px; }

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  border: none;
  background: var(--surface-2);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.login-box .btn-water { margin-top: 4px; padding: 13px; }

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-hero { padding: 26px 22px; gap: 16px; }
  .login-hero-text h1 { font-size: 22px; }
  .login-pots, .login-features { display: none; }
  .login-box { padding: 28px 22px; }
}
