/* Signup Page Specific Variables */
.signup-page {
  /* Light theme */
  --lead: #1a1a2e;
  --gold-finger: #f39c12;
  --gold-hover: #e67e22;
  --eye-ball: #f8f9fa;
  --hint-yellow: #fff3cd;
  --pure-white: #ffffff;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-accent: #fff3cd;
  --border-color: #e1e8ed;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-strong: rgba(0, 0, 0, 0.15);
  --success: #27ae60;
  --error: #e74c3c;
}

/* Dark Theme for Signup Page */
.signup-page[data-theme="dark"] {
  --lead: #ecf0f1;
  --gold-finger: #f39c12;
  --gold-hover: #e67e22;
  --eye-ball: #0f0f1e;
  --hint-yellow: #2c3e50;
  --pure-white: #1a1a2e;
  --text-primary: #ecf0f1;
  --text-secondary: #95a5a6;
  --bg-primary: #16213e;
  --bg-secondary: #1a1a2e;
  --bg-accent: #2c3e50;
  --border-color: #2c3e50;
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-strong: rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--eye-ball);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: background 0.3s ease;
}

/* Navigation */
.back-home {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%); /* yellow-orange gradient */
  color: #2a2a2a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.back-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow-strong);
  border-color: #f9d423;
  background: linear-gradient(135deg, #ffe259 0%, #ffa751 100%); /* lighter yellow-orange on hover */
}

.back-home .icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.back-home:hover .icon {
  transform: translateX(-3px);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1100;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px var(--shadow);
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px var(--shadow-strong);
  border-color: var(--gold-finger);
}

/* Main Container */
.container {
  display: flex;
  background: var(--bg-secondary);
  border-radius: 24px;
  overflow: hidden;
  max-width: 1100px;
  width: 100%;
  box-shadow: 0 20px 60px var(--shadow-strong);
  min-height: 650px;
  border: 1px solid var(--border-color);
}

/* Hero Section */
.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  top: -150px;
  right: -150px;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  bottom: -80px;
  left: -80px;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  letter-spacing: -1px;
}

.hero-section p {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  z-index: 1;
  transition: opacity 0.3s ease;
  /* Fixed dimensions to prevent layout shift */
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  text-align: center;
}

.hero-section .emoji {
  font-size: 5rem;
  z-index: 1;
  transition: opacity 0.3s ease;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  /* Fixed dimensions to prevent layout shift */
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

/* Form Section */
.form-section {
  flex: 1.1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-secondary);
}

/* Auth Container */
.auth-container {
  display: none;
}

.auth-container.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

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

/* Typography */
h2 {
  color: var(--text-primary);
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.5;
}

/* Form Elements */
.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}

input:focus {
  outline: none;
  border-color: var(--gold-finger);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.1);
}

input::placeholder {
  color: var(--text-secondary);
}

/* Password Field */
.password-field {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.toggle-password:hover {
  color: var(--gold-finger);
}

/* Forgot Password */
.forgot-password {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 20px;
}

.forgot-password a {
  color: var(--gold-finger);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.forgot-password a:hover {
  color: var(--gold-hover);
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--gold-finger);
}

.checkbox-group label {
  margin: 0;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
  letter-spacing: 0.3px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

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

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 28px 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  padding: 0 16px;
}

/* Social Login */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.social-btn,
.phone-login {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
}

.social-btn:hover,
.phone-login:hover {
  border-color: var(--gold-finger);
  background: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.social-btn i,
.phone-login i {
  font-size: 18px;
}

/* Form Switch */
.switch-form {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 24px;
}

.switch-form a {
  color: var(--gold-finger);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease;
}

.switch-form a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* reCAPTCHA */
#recaptcha-container {
  margin-top: 16px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .container {
    flex-direction: column;
    max-width: 500px;
  }

  .hero-section {
    padding: 50px 30px;
    min-height: 300px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .emoji {
    font-size: 4rem;
    height: 64px;
  }

  .hero-section p {
    font-size: 1.1rem;
    height: 35px;
    min-width: 240px;
  }

  .form-section {
    padding: 40px 30px;
  }

  h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .back-home,
  .theme-toggle {
    top: 12px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .back-home {
    left: 12px;
  }

  .theme-toggle {
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .container {
    border-radius: 16px;
  }

  .hero-section {
    padding: 40px 20px;
  }

  .hero-section p {
    font-size: 1rem;
    height: 30px;
    min-width: 200px;
  }

  .hero-section .emoji {
    font-size: 3.5rem;
    height: 56px;
  }

  .form-section {
    padding: 32px 24px;
  }

  h2 {
    font-size: 1.5rem;
  }
}
