/* ============================================
   Hela Isi — auth.css  (login & register)
   ============================================ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── LEFT PANEL ── */
.auth-left {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-mid) 100%);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '🌿';
  position: absolute;
  right: -20px; bottom: -20px;
  font-size: 220px; opacity: .06;
}
.auth-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 60px; }
.auth-emblem {
  width: 46px; height: 46px; background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.auth-brand { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: white; font-weight: 600; }
.auth-brand-sub { font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: .1em; text-transform: uppercase; }

.auth-left-content { position: relative; }
.auth-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px; color: white; font-weight: 600; line-height: 1.15; margin-bottom: 16px;
}
.auth-headline em { color: var(--gold-light); font-style: italic; }
.auth-sinhala { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 28px; }
.auth-promise {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(184,147,42,.25);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 22px;
}
.auth-promise p { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; font-style: italic; }
.auth-promise cite { font-size: 11px; color: var(--gold-light); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; display: block; font-style: normal; }
.auth-services { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-service-pill {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 5px 12px; font-size: 11px; color: rgba(255,255,255,.6);
  font-weight: 500;
}
.auth-left-footer { position: relative; }
.auth-hours {
  font-size: 12px; color: rgba(255,255,255,.4);
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px;
}
.auth-hours strong { color: var(--gold-light); }

/* ── RIGHT PANEL ── */
.auth-right {
  background: var(--parchment);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.auth-form-wrap { max-width: 420px; width: 100%; }
.auth-form-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: var(--forest); margin-bottom: 4px; }
.auth-form-sub { font-size: 13px; color: var(--muted); margin-bottom: 32px; }

/* ── ROLE SELECTOR ── */
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.role-card {
  border: 2px solid var(--border); border-radius: 10px;
  padding: 14px 12px; cursor: pointer; transition: all .15s;
  background: white; text-align: center;
}
.role-card:hover { border-color: var(--gold); }
.role-card.selected { border-color: var(--gold); background: var(--gold-pale); }
.role-card.disabled { opacity: .4; cursor: not-allowed; }
.role-icon  { font-size: 22px; margin-bottom: 6px; }
.role-label { font-size: 12px; font-weight: 700; color: var(--forest); display: block; }
.role-desc  { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ── DIVIDER ── */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--muted); }

/* ── ALERTS ── */
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 3px solid var(--rose); }
.alert-success { background: #d1fae5; color: #065f46; border-left: 3px solid #22c55e; }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 3px solid var(--gold); }

/* ── BACK LINK ── */
.auth-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 28px; transition: color .15s; }
.auth-back:hover { color: var(--forest); }

/* ── SUBMIT BTN ── */
.auth-submit { width: 100%; padding: 12px; font-size: 14px; }

/* ── SWITCH LINK ── */
.auth-switch { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--gold); font-weight: 600; }

/* ── APPROVAL NOTE ── */
.approval-note {
  background: var(--cream); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; font-size: 12px; color: var(--text2); margin-top: 16px;
  display: flex; gap: 8px;
}
.approval-note-icon { font-size: 16px; flex-shrink: 0; }

@media (max-width: 768px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 40px 28px; }
}

/* ── Google Button ── */
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 18px; margin-bottom: 18px;
  background: white; color: #3c4043;
  border: 1.5px solid #dadce0; border-radius: 8px;
  font-family: 'Jost', sans-serif; font-size: 13.5px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: box-shadow .2s, border-color .2s;
}
.google-btn:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  border-color: #c0c0c0;
}

/* ── Divider ── */
.auth-divider {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.auth-divider span {
  font-size: 11px; color: var(--muted); font-weight: 600;
  white-space: nowrap;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}