:root {
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-soft: #ecfeff;
  --primary-strong: #134e4a;
  --bg-dark: #052e2b;
  --text-dark: #f8fafc;
  --text-muted: #64748b;
  --surface: #ffffff;
  --border: #d6ece9;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 32%),
    linear-gradient(135deg, #f8fffe 0%, #eef8f7 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.page-shell {
  display: flex;
  width: 100%;
  max-width: 1040px;
  min-height: 680px;
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 118, 110, 0.15);
}

.auth-panel {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--primary) 45%, #0f3d3a 100%);
  color: var(--text-dark);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.auth-panel::before {
  content: '';
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.branding {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.brand-logo {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.branding h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.branding p {
  color: rgba(248, 250, 252, 0.85);
  line-height: 1.7;
  max-width: 420px;
}

.highlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.highlight-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7f2f0;
  font-size: 0.95rem;
}

.highlight-list li::before {
  content: "✓";
  color: #67e8f9;
  font-weight: 700;
}

.auth-panel-footer p {
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.9rem;
}

.auth-content {
  flex: 1.15;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #fcfefe 100%);
}

.auth-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #102a2a;
}

.auth-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334e4d;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  background: #f8fcfc;
  transition: all 0.2s ease;
  color: #0f172a;
}

.field input::placeholder {
  color: #9ca3af;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.checkbox-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #475569;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox input {
  margin-top: 2px;
  accent-color: var(--primary);
}

.link-text {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.link-text:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.22);
}

.note-card {
  padding: 12px 16px;
  background: var(--primary-soft);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 12px;
  color: var(--primary-strong);
  font-size: 0.875rem;
  line-height: 1.6;
}

.page-footer {
  text-align: center;
  margin-top: 4px;
}

.status-banner {
  padding: 10px 14px;
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 10px;
  font-size: 0.85rem;
}

.success-message {
  padding: 12px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 10px;
  font-weight: 500;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  body {
    padding: 12px;
  }

  .page-shell {
    flex-direction: column;
    min-height: auto;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .auth-panel {
    padding: 24px;
  }

  .auth-content {
    padding: 20px 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .auth-card {
    max-width: 100% !important;
    width: 100% !important;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkbox-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .booking-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .booking-slot-button {
    padding: 8px 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
