/* login.css - PERFECT signup.css match + dashboard growth animations */

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

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background:
    radial-gradient(circle at 10% 20%, rgba(225, 6, 0, 0.12) 0, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.12) 0, transparent 55%),
    #f3f4f6;
}

/* Navbar - IDENTICAL to signup */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  height: 40px;
  display: block;
}

/* Shell - IDENTICAL to signup */
.signup-shell {
  max-width: 1180px;
  margin: 32px auto 40px;
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1.1fr);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(148, 163, 184, 0.16);
  animation: shell-in 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(16px);
}

@keyframes shell-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form panel - IDENTICAL to signup */
.signup-form-panel {
  padding: 40px 40px 32px;
  background: linear-gradient(145deg, #f9fafb, #ffffff);
}

.form-card { max-width: 420px; }

.form-kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: #ef4444;
  font-weight: 600;
}

.form-header h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.form-subtitle {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: #6b7280;
}

/* Banners - IDENTICAL */
.banner {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.banner-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #b91c1c;
}

.banner-success {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #047857;
}

.hidden { display: none; }

/* Form inputs - IDENTICAL */
.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #111827;
}

.required { color: #ef4444; }

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

.input-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  font-size: 0.95rem;
  pointer-events: none;
}

input[type="email"], input[type="password"] {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 11px 14px 11px 40px;
  font-size: 0.9rem;
  background: #f9fafb;
  color: #111827;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    transform 0.12s ease;
}

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

input:focus {
  background: #ffffff;
  border-color: #e10600;
  box-shadow:
    0 0 0 1px rgba(225, 6, 0, 0.12),
    0 0 0 6px rgba(225, 6, 0, 0.08);
  transform: translateY(-1px);
}

.password-toggle {
  position: absolute;
  right: 10px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease, transform 0.18s ease;
}

.password-toggle:hover {
  color: #e10600;
  transform: scale(1.05);
}

/* Buttons - IDENTICAL */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: none;
  padding: 11px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-position 0.25s ease,
    background-color 0.18s ease;
}

.btn.primary {
  width: 100%;
  background-image: linear-gradient(120deg, #e10600, #fb923c, #ec4899);
  background-size: 220% 100%;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(225, 6, 0, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  background-position: 100% 0;
  box-shadow: 0 20px 40px rgba(225, 6, 0, 0.55);
}

/* Checkbox - IDENTICAL */
.form-options {
  margin: 10px 0 14px;
  font-size: 0.85rem;
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #4b5563;
}

.checkbox-container input { display: none; }

.checkmark {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1px solid #e10600;
  background: #ffffff;
  position: relative;
}

.checkbox-container input:checked + .checkmark {
  background: linear-gradient(135deg, #e10600, #fb7185);
  border-color: transparent;
}

.checkbox-container input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 7px;
  height: 11px;
  border: 2px solid #ffffff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.form-footer {
  margin-top: 16px;
  font-size: 0.86rem;
  text-align: center;
  color: #6b7280;
}

.form-footer a, .link {
  color: #e10600;
  text-decoration: none;
}

.form-footer a:hover, .link:hover { text-decoration: underline; }

.loading { opacity: 0.7; pointer-events: none; }

/* ========== HERO PANEL - IDENTICAL COLORS TO SIGNUP ========= */
.login-hero-panel {
  position: relative;
  overflow: hidden;
  padding: 40px 40px 32px;
  /* EXACT signup hero colors */
  background: radial-gradient(circle at 0 0, #410b0b 0, transparent 50%),
              radial-gradient(circle at 100% 100%, #c73636f3 0, transparent 52%),
              #0f172a;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating pills - IDENTICAL to signup */
.hero-bg-pill {
  position: absolute;
  border-radius: 999px;
  opacity: 0.8;
  filter: blur(1px);
  mix-blend-mode: screen;
  animation: float-pill 14s ease-in-out infinite alternate;
}

.pill-1 {
  width: 280px;
  height: 80px;
  top: 12%;
  left: 8%;
  background: linear-gradient(120deg, #873e06, #fa0303);
}

.pill-2 {
  width: 220px;
  height: 70px;
  top: 32%;
  right: 6%;
  background: linear-gradient(120deg, #01011c, #f52d09);
  animation-delay: 2s;
}

.pill-3 {
  width: 320px;
  height: 320px;
  bottom: -60px;
  left: 5%;
  background: radial-gradient(circle, rgba(245, 6, 42, 0.9), transparent 60%);
  animation-delay: 4s;
}

.pill-4 {
  width: 140px;
  height: 140px;
  bottom: 18%;
  right: 18%;
  background: radial-gradient(circle, rgba(64, 63, 62, 0.9), transparent 60%);
  animation-delay: 6s;
}

@keyframes float-pill {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(8px, -10px, 0); }
}

/* Hero copy - IDENTICAL */
.signup-hero-copy {
  position: relative;
  max-width: 360px;
  z-index: 1;
}

.hero-tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
  color: #e5e7eb;
}

.signup-hero-copy h2 {
  margin: 0 0 12px;
  font-size: 2.2rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #b91c1c;
}

.accent { color: #c19676; }

.hero-sub {
  margin: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
  max-width: 320px;
}

/* ========== DASHBOARD GROWTH ANIMATIONS ========== */
.login-growth-widget {
  margin-top: 28px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.growth-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 120px;
  height: 80px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(12px);
}

.growth-bar {
  flex: 1;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, #f6f7f6 0%, #f94706 50%, #170a00 100%);
  box-shadow: 
    0 6px 16px rgba(34, 197, 94, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.25);
  transform-origin: bottom;
  animation: growthPulse 3.5s ease-in-out infinite;
}

.bar-1 { 
  animation-delay: 0s; 
  height: 45%; 
}
.bar-2 { 
  animation-delay: 0.6s; 
  height: 75%; 
}
.bar-3 { 
  animation-delay: 1.2s; 
  height: 95%; 
}

@keyframes growthPulse {
  0% { 
    transform: scaleY(0.3); 
    opacity: 0.7;
  }
  20% { 
    transform: scaleY(1.1); 
    opacity: 1;
  }
  40%, 60% { 
    transform: scaleY(1); 
  }
  80% { 
    transform: scaleY(1.25); 
  }
  100% { 
    transform: scaleY(0.4); 
    opacity: 0.8;
  }
}

.growth-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.84rem;
  color: #e5e7eb;
  min-width: 80px;
}

.growth-legend span:first-child {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.growth-note {
  color: #9ca3af;
  font-size: 0.78rem;
}

/* Responsive - IDENTICAL to signup */
@media (max-width: 960px) {
  .signup-shell {
    grid-template-columns: 1fr;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    min-height: calc(100vh - 72px);
  }
  .signup-form-panel { order: 2; }
  .login-hero-panel { 
    min-height: 260px; 
    order: 1; 
  }
}

@media (max-width: 640px) {
  .signup-form-panel { padding: 24px 18px; }
  .form-card { max-width: 100%; }
  .signup-hero-copy h2 { font-size: 1.9rem; }
}
