/* ===== LOGIN PAGE CSS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --wood-dark: #0d0800;
  --wood-brown: #3d1f00;
  --wood-mid: #6b3a1f;
  --wood-light: #c4722a;
  --gold: #d4a017;
  --gold-light: #f0c040;
  --cream: #fdf6ec;
  --white: #ffffff;
  --danger: #e53e3e;
  --transition: all 0.3s ease;
}

html, body { height: 100%; font-family: 'Inter', 'Noto Sans Gujarati', sans-serif; }

body {
  background: var(--wood-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* BG Orbs */
.login-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: drift 8s ease-in-out infinite;
}

.orb1 { width: 500px; height: 500px; background: radial-gradient(circle, #6b3a1f, transparent); top: -150px; left: -150px; animation-delay: 0s; }
.orb2 { width: 400px; height: 400px; background: radial-gradient(circle, #d4a017, transparent); bottom: -100px; right: -100px; animation-delay: 3s; }
.orb3 { width: 300px; height: 300px; background: radial-gradient(circle, #c4722a, transparent); top: 40%; left: 40%; animation-delay: 5s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Wrapper */
.login-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(900px, 95vw);
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

/* LEFT PANEL */
.login-left {
  flex: 1;
  background: linear-gradient(145deg, #3d1f00 0%, #6b3a1f 50%, #8b4a20 100%);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-left::after {
  content: '🌳';
  position: absolute;
  font-size: 14rem;
  opacity: 0.07;
  right: -40px; bottom: -40px;
  pointer-events: none;
}

.brand-area { text-align: center; }

.brand-logo {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.brand-name {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--gold-light);
  font-family: 'Noto Sans Gujarati', sans-serif;
  margin-bottom: 8px;
}

.brand-tagline { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

.brand-features { display: flex; flex-direction: column; gap: 14px; margin: 32px 0; }

.feature-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  padding: 12px 18px;
  border-radius: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.feature-row:hover { background: rgba(255,255,255,0.14); transform: translateX(4px); }
.feat-icon { font-size: 1.3rem; }

.brand-footer {
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

/* RIGHT PANEL */
.login-right {
  flex: 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 40px;
}

.login-card { width: 100%; max-width: 380px; }

.login-header { margin-bottom: 32px; }
.login-header h2 { font-size: 1.8rem; font-weight: 800; color: var(--wood-brown); margin-bottom: 6px; }
.login-header p { color: #7a6050; font-size: 0.95rem; }

/* Error Banner */
.error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(229, 62, 62, 0.1);
  border: 1px solid rgba(229, 62, 62, 0.3);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  60% { transform: translateX(8px); }
}

/* Form */
.login-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: #4a3728; }

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

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}

.input-wrap input {
  width: 100%;
  padding: 13px 44px 13px 42px;
  border: 2px solid rgba(196,114,42,0.25);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: white;
  color: var(--wood-brown);
  transition: var(--transition);
  outline: none;
}

.input-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.15);
}

.toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.5;
  transition: var(--transition);
  padding: 4px;
}
.toggle-pwd:hover { opacity: 1; }

/* Options */
.form-options { display: flex; align-items: center; justify-content: space-between; }

.remember-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #4a3728;
  font-weight: 500;
}

.remember-check input { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }

/* Login Button */
.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #d4a017, #c4722a);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(212,160,23,0.4);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212,160,23,0.5);
}

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

/* Hint */
.login-hint {
  margin-top: 24px;
  padding: 14px 18px;
  background: rgba(212,160,23,0.08);
  border: 1px dashed rgba(212,160,23,0.4);
  border-radius: 10px;
  text-align: center;
  font-size: 0.82rem;
  color: #7a6050;
}

.login-hint strong { color: var(--wood-brown); }

/* Responsive */
@media (max-width: 640px) {
  .login-left { display: none; }
  .login-wrapper { width: 95vw; }
  .login-right { padding: 36px 28px; }
}
