:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #162033;
  --muted: #5a6780;
  --primary: #0f766e;
  --primary-strong: #0a5b55;
  --accent: #c6a769;
  --danger: #b42318;
  --ok: #157347;
  --border: #dbe4f0;
  --shadow: 0 12px 28px rgba(22, 32, 51, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #e4fbf4 0%, transparent 40%), var(--bg);
  line-height: 1.45;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.auth-container {
  max-width: 560px;
}

.hero {
  background: linear-gradient(135deg, #0f766e 0%, #0d5f8c 70%, #13465e 100%);
  color: #fff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.hero h1,
.hero h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.hero p {
  margin: 0;
  color: #d2f5ec;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.title {
  margin: 0;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.panel-soft {
  background: var(--surface-soft);
}

.grid {
  display: grid;
  gap: 12px;
}

.grid-cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.stat .k {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.stat .v {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 4px;
}

form {
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

label {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #7ec9ba;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-outline {
  background: #fff;
  color: var(--primary-strong);
  border: 1px solid #93bfb8;
}

.btn-muted {
  background: #eef3fb;
  color: #31415c;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #e8f7f4;
  color: #0f6b63;
  border: 1px solid #bde8df;
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-clean li + li {
  margin-top: 10px;
}

.item-title {
  margin: 0 0 4px;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.notice {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.notice-error {
  background: #fff2f0;
  color: var(--danger);
  border: 1px solid #ffcec7;
}

.notice-ok {
  background: #eefbf2;
  color: var(--ok);
  border: 1px solid #ccefd8;
}

.section-title {
  margin: 0 0 10px;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.brand {
  color: var(--accent);
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays div {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  padding: 6px 4px;
}

.calendar-day {
  min-height: 82px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.calendar-day.is-empty {
  background: #f3f6fb;
  border-style: dashed;
  cursor: default;
}

.calendar-day-number {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.calendar-day-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: #0d5c55;
  background: #dcf4ef;
  border: 1px solid #b4e4d9;
  border-radius: 999px;
  padding: 2px 8px;
}

.calendar-day.has-reservation {
  border-color: #7ec9ba;
  background: #f2fbf8;
}

.calendar-day.is-selected {
  outline: 2px solid #0f766e;
}

@media (max-width: 700px) {
  .hero h1,
  .hero h2 {
    font-size: 1.5rem;
  }
}
