/* ===== BASE RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: #fef3c7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== FLEXIBLE LAYOUT ===== */
.signup-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left Panel (60%) - Welcome Content */
.left-panel {
  width: 60%;
  background-color: #fef3c7;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden; /* Prevent overflow */
}

/* Gradient background effect */
.left-panel::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 60%;
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  opacity: 0.05;
  border-radius: 50% 0 0 0;
}

/* Compact Content overlay */
.welcome-content {
  width: 100%;
  max-width: 500px;
  background-color: rgba(254, 215, 170, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px 35px;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.welcome-title {
  color: #78350f;
  font-size: 2.8rem; /* Smaller for compact view */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.welcome-subtitle {
  color: #92400e;
  font-size: 1.5rem; /* Smaller for compact view */
  font-weight: 600;
  margin-bottom: 20px;
}

.welcome-description {
  color: #78350f;
  font-size: 1rem; /* Smaller for compact view */
  line-height: 1.5;
  margin-bottom: 25px;
  opacity: 0.9;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
}

.feature-item {
  color: #78350f;
  font-size: 0.95rem; /* Smaller for compact view */
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  line-height: 1.4;
}

.feature-item::before {
  content: "✓";
  color: #ea580c;
  font-weight: bold;
  font-size: 1rem;
  margin-right: 10px;
  display: inline-block;
  min-width: 16px;
}

/* Right Panel (40%) - Compact Signup Form */
.form-card {
  width: 40%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  box-shadow: -5px 0 30px rgba(234, 88, 12, 0.08);
}

/* Custom scrollbar for form card */
.form-card::-webkit-scrollbar {
  width: 6px;
}

.form-card::-webkit-scrollbar-track {
  background: #fef3c7;
}

.form-card::-webkit-scrollbar-thumb {
  background: #f59e0b;
  border-radius: 3px;
}

.form-card h2 {
  color: #ea580c;
  text-align: center;
  font-size: 1.8rem; /* Smaller for compact view */
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  color: #78350f;
  text-align: center;
  font-size: 1rem; /* Smaller for compact view */
  margin-bottom: 25px;
  font-weight: 500;
}

/* Form elements */
#signupForm {
  width: 100%;
}

.input-group {
  position: relative;
  margin-bottom: 18px; /* Reduced spacing */
  width: 100%;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #92400e;
  font-size: 1rem;
  z-index: 2;
}

.input-group input {
  width: 100%;
  padding: 14px 15px 14px 45px; /* Reduced padding */
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1f2937;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.input-group input::placeholder {
  color: #9ca3af;
}

/* Password Strength Indicator */
#passwordStrength {
  margin-bottom: 20px;
  height: 5px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

#strengthBar {
  height: 100%;
  width: 0%;
  background: #22c55e;
  border-radius: 3px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Strength colors */
#strengthBar.weak {
  background: #ef4444;
  width: 25%;
}

#strengthBar.fair {
  background: #f59e0b;
  width: 50%;
}

#strengthBar.good {
  background: #84cc16;
  width: 75%;
}

#strengthBar.strong {
  background: #22c55e;
  width: 100%;
}

/* Create Account Button */
.signup-btn {
  width: 100%;
  padding: 15px;
  background-color: #f59e0b;
  color: #78350f;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 15px;
}

.signup-btn:hover {
  background-color: #e68a07;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #92400e;
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #f59e0b;
}

.divider::before {
  margin-right: 12px;
}

.divider::after {
  margin-left: 12px;
}

/* Google Button - FIXED HOVER */
.google-btn {
  width: 100%;
  padding: 14px;
  background-color: white;
  color: #374151;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-btn:hover {
  border-color: #ea580c !important; /* Force hover color */
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.1) !important;
  transform: translateY(-1px); /* Add subtle lift */
}

.google-btn i {
  font-size: 1.1rem;
  color: #ea4335;
}

/* Switch auth link */
.switch-auth {
  text-align: center;
  color: #78350f;
  font-size: 0.9rem;
  margin-top: 15px;
  margin-bottom: 10px;
}

.switch-auth a {
  color: #ea580c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.switch-auth a:hover {
  color: #c2410c;
  text-decoration: underline;
}

/* Message container */
#message {
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

#message.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

#message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* Footer */
.footer {
  text-align: center;
  color: #78350f;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #fde68a;
}

/* Terms Checkbox */
.terms-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #fef3c7;
  border-radius: 8px;
  border: 1px solid #fde68a;
}

.terms-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  margin-top: 3px;
  accent-color: #ea580c;
  cursor: pointer;
  flex-shrink: 0;
}

.terms-checkbox label {
  color: #78350f;
  font-size: 0.85rem;
  line-height: 1.4;
  cursor: pointer;
}

.terms-checkbox a {
  color: #ea580c;
  text-decoration: none;
  font-weight: 500;
}

.terms-checkbox a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .signup-container {
    flex-direction: column;
    height: auto;
    width: 100%;
    overflow-y: visible;
  }

  body {
    overflow-y: auto;
  }

  .left-panel {
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 60px 20px;
  }

  .welcome-content {
    width: 100%;
    max-width: 600px;
    padding: 40px 30px;
    margin: 0 auto;
  }

  .form-card {
    width: 100%;
    height: auto;
    padding: 60px 40px;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    max-height: none;
    overflow-y: visible;
  }

  .welcome-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .welcome-title {
    font-size: 2rem;
  }

  .welcome-subtitle {
    font-size: 1.3rem;
  }

  .welcome-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .form-card {
    padding: 40px 25px;
  }

  .form-card h2 {
    font-size: 1.6rem;
  }

  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .input-group input {
    padding: 14px 15px 14px 45px;
    font-size: 0.95rem;
  }

  .signup-btn,
  .google-btn {
    padding: 14px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .welcome-title {
    font-size: 1.7rem;
  }

  .left-panel {
    padding: 40px 15px;
  }

  .welcome-content {
    padding: 25px 20px;
  }

  .form-card {
    padding: 30px 20px;
  }
}

/* ===== FOCUS STATES ===== */
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

/* Force Google button hover fix */
.google-btn:hover,
.google-btn:focus,
.google-btn:active {
  border-color: #ea580c !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.1) !important;
}
