/* ═══════════════════════════════════════════════════════════════
   Vana Interior — Customer Sign-in / Register (split-screen)
═══════════════════════════════════════════════════════════════ */
:root {
  --green:        #1C562E;
  --green-hover:  #2D7A45;
  --green-light:  #E8F2EC;
  --cream:        #FAF8F3;
  --sand:         #E8DCC8;
  --espresso:     #1A1410;
  --gold:         #C4963A;
  --gold-hover:   #A8893A;
  --gold-light:   #F0E6C8;
  --muted:        #8A8278;
  --white:        #FFFFFF;
  --border:       #E8DCC8;
  --danger:       #C0392B;
  --success:      #1A7F37;
  /* Legacy aliases */
  --charcoal:     var(--espresso);
  --bg:           var(--cream);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  display: flex;
  min-height: 100vh;
  margin: 0;
}

/* ── Left Panel (image w/ green gradient) ────────────────────── */
.login-left {
  flex: 1;
  background: url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?w=1200&q=80') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 60px;
}
.login-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,86,46,0.82), rgba(26,20,16,0.30));
}
.login-left-content { position: relative; z-index: 2; }
.login-left-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.login-left-content p {
  font: 300 15px/1.6 'Inter', sans-serif;
  color: rgba(255,255,255,0.75);
  max-width: 360px;
  margin: 0;
}

/* ── Right Panel (form) ──────────────────────────────────────── */
.login-right {
  width: 480px;
  flex-shrink: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
}

.login-card {
  width: 100%;
  background: none;
  border: none;
  box-shadow: none;
}

.login-card-header {
  text-align: center;
  padding: 0 0 20px;
}

.login-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}

.login-back {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  transition: color 0.2s;
}
.login-back:hover { color: var(--green); }

/* ── Tabs ────────────────────────────────────────────────────── */
.login-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.login-tab {
  flex: 1;
  padding: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.login-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ── Form panels ─────────────────────────────────────────────── */
.login-panels { padding: 28px 0 0; }
.login-panel { display: none; }
.login-panel.active { display: block; }

/* ── Form fields ─────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input {
  height: 46px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 0 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--espresso);
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--green);
}

.form-group input::placeholder { color: var(--muted); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-auth {
  width: 100%;
  height: 48px;
  background: var(--green);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 16px;
  transition: background 0.2s;
}
.btn-auth:hover    { background: var(--green-hover); }
.btn-auth:disabled { opacity: 0.65; cursor: not-allowed; }

.btn-guest {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  padding: 4px 0;
  transition: color 0.2s;
}
.btn-guest:hover { color: var(--green); }

/* ── Messages ────────────────────────────────────────────────── */
.auth-error, .auth-success {
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
  line-height: 1.4;
}

.auth-error {
  background: #fdf2f2;
  border: 1px solid #f5c6cb;
  color: var(--danger);
}

.auth-success {
  background: var(--green-light);
  border: 1px solid var(--green);
  color: var(--green);
}

.auth-error.visible, .auth-success.visible { display: block; }

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

/* ── Inline switch-panel buttons (uses inline color) ─────────── */
.login-panel button[onclick] { color: var(--green) !important; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  body { flex-direction: column; }
  .login-left {
    flex: 0 0 220px;
    padding: 32px;
  }
  .login-right {
    width: 100%;
    padding: 36px 24px;
  }
}

@media (max-width: 480px) {
  .login-left { flex: 0 0 160px; padding: 24px; }
  .login-left-content h2 { font-size: 26px; }
  .login-right { padding: 28px 18px; }
}
