/* =========================================================
   DEBDIPA'S NATURE HUB - BOTANICAL LUXURY AUTHENTICATION STYLES
   ========================================================= */

:root {
  --primary-green: #536B55;
  --primary-green-dark: #3E5240;
  --deep-forest: #263F35;
  --forest-dark: #1A2E26;
  --accent-gold: #C9A85C;
  --accent-gold-hover: #b89345;
  --warm-cream: #FCF9F0;
  --warm-cream-alt: #F7F2E5;
  --cream-card: #FFFFFF;
  --sage-light: #EBF1EA;
  --sage-border: #D1DEC7;
  --text-primary: #263F35;
  --text-muted: #6B7C6E;
  --text-light: #8E9E91;
  --danger-red: #B83A3A;
  --danger-light: #FBEAEA;
  --success-green: #2E7D32;
  --success-light: #E8F5E9;
  
  --font-serif: 'Marcellus', 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-nav: 'Tenor Sans', sans-serif;
  
  --shadow-sm: 0 4px 12px rgba(38, 63, 53, 0.05);
  --shadow-md: 0 10px 30px rgba(38, 63, 53, 0.08);
  --shadow-lg: 0 20px 50px rgba(38, 63, 53, 0.12);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, #F9F6EE 0%, #EFE9DB 50%, #F5F1E6 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  position: relative;
  overflow-x: hidden;
}

/* Background Botanical Watermark */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(83, 107, 85, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Top Back Button */
.home-button {
  position: fixed;
  top: 24px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--deep-forest);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--sage-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  z-index: 100;
}

.home-button:hover {
  background: var(--primary-green);
  color: #ffffff;
  transform: translateX(-3px);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

/* Auth Card Wrapper */
.auth-wrapper {
  width: 100%;
  max-width: 1020px;
  position: relative;
  z-index: 1;
}

.auth-card {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(83, 107, 85, 0.15);
  min-height: 640px;
}

/* BRAND COLUMN */
.auth-brand {
  background: linear-gradient(155deg, var(--deep-forest) 0%, #1c3229 100%);
  color: #FFFFFF;
  padding: 45px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201, 168, 92, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.brand-logo a,
.auth-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 10px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(201, 168, 92, 0.35);
  transition: all 0.25s ease;
}

.brand-logo a:hover,
.auth-logo a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.auth-logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-content {
  margin: 25px 0;
}

.small-badge {
  display: inline-block;
  background: rgba(201, 168, 92, 0.2);
  border: 1px solid rgba(201, 168, 92, 0.4);
  color: #F1DEC0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.auth-brand h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 14px;
  font-weight: 400;
}

.auth-brand h2 em {
  font-style: italic;
  color: #E2C785;
}

.auth-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #C2D1C5;
  margin-bottom: 15px;
}

/* Demo Logins Box */
.demo-login-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 10px;
}

.demo-title {
  font-size: 12.5px;
  color: #E2C785;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-buttons {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.btn-demo-quick {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: all 0.2s ease;
}

.btn-demo-quick:hover {
  background: var(--accent-gold);
  color: var(--deep-forest);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.btn-demo-quick.admin-demo-btn {
  background: rgba(201, 168, 92, 0.16);
  border-color: rgba(201, 168, 92, 0.45);
  color: #F7E7CD;
}

.btn-demo-quick.admin-demo-btn:hover {
  background: #c9a85c;
  color: #263F35;
  border-color: #c9a85c;
}

.demo-hint {
  margin-top: 8px;
  color: #AAB89B;
  font-size: 11px;
}

.demo-hint code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: #E2C785;
}

.admin-portal-switch {
  margin-top: 20px;
  text-align: center;
  padding-top: 16px;
  border-top: 1px dashed rgba(38, 63, 53, 0.18);
}

.admin-portal-link {
  font-size: 13px;
  font-weight: 600;
  color: #536B55;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(83, 107, 85, 0.08);
  transition: all 0.2s ease;
}

.admin-portal-link:hover {
  background: #536B55;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Decorative Leaves */
.decorative-leaf {
  position: absolute;
  color: rgba(255, 255, 255, 0.04);
  font-size: 140px;
  pointer-events: none;
}

.leaf-one {
  top: -20px;
  right: -30px;
  transform: rotate(45deg);
}

.leaf-two {
  bottom: 80px;
  left: -40px;
  transform: rotate(-30deg);
}

/* FORM AREA */
.auth-form-area {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FCFDFB;
}

/* TABS */
.auth-tabs {
  display: flex;
  background: var(--warm-cream-alt);
  padding: 5px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--sage-border);
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.auth-tab.active {
  background: #FFFFFF;
  color: var(--deep-forest);
  box-shadow: 0 2px 8px rgba(38, 63, 53, 0.08);
}

/* Alerts */
.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

.auth-alert.error {
  background: var(--danger-light);
  border: 1px solid rgba(184, 58, 58, 0.3);
  color: var(--danger-red);
}

.auth-alert.success {
  background: var(--success-light);
  border: 1px solid rgba(46, 125, 50, 0.3);
  color: var(--success-green);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Styles */
.auth-form {
  display: none;
  flex-direction: column;
}

.auth-form.active-form {
  display: flex;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-heading {
  margin-bottom: 20px;
}

.form-heading h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--deep-forest);
  font-weight: 400;
  margin-bottom: 4px;
}

.form-heading p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.input-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.input-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-forest);
  margin-bottom: 6px;
}

.forgot-link {
  font-size: 12px;
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
  color: var(--deep-forest);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-container input {
  width: 100%;
  padding: 11px 40px 11px 14px;
  border: 1.5px solid #D6E0D4;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: #FFFFFF;
  transition: all 0.2s ease;
}

.input-container input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(83, 107, 85, 0.15);
}

.input-icon {
  position: absolute;
  right: 14px;
  color: var(--text-light);
  font-size: 15px;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--deep-forest);
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Custom Checkbox */
.form-check-row {
  margin-bottom: 20px;
}

.custom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--sage-border);
  border-radius: 4px;
  background: #FFFFFF;
  position: relative;
  transition: all 0.2s;
}

.custom-checkbox input:checked ~ .checkmark {
  background: var(--primary-green);
  border-color: var(--primary-green);
}

.custom-checkbox input:checked ~ .checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10px;
  color: #FFFFFF;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 13px 20px;
  background: var(--primary-green);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(83, 107, 85, 0.25);
  transition: all 0.25s ease;
}

.submit-btn:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(83, 107, 85, 0.35);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Footer Link Switch */
.form-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.switch-link {
  background: none;
  border: none;
  color: var(--primary-green);
  font-weight: 600;
  font-size: 13.5px;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.switch-link:hover {
  color: var(--deep-forest);
}

/* Toast */
.auth-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--deep-forest);
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-gold);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  pointer-events: none;
}

.auth-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 860px) {
  .auth-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-brand {
    padding: 32px 24px;
  }

  .auth-form-area {
    padding: 32px 24px;
  }

  .home-button {
    top: 14px;
    left: 14px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .input-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}