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

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

/* ===== SPLIT SCREEN LAYOUT ===== */
.login-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left Panel (60%) */
.left-panel {
  width: 60%;
  background-color: #fef3c7;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 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;
}

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

.welcome-title {
  color: #78350f;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.welcome-subtitle {
  color: #92400e;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.welcome-description {
  color: #78350f;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
}

.feature-list {
  list-style: none;
}

.feature-item {
  color: #78350f;
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  line-height: 1.5;
}

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

/* Right Panel (40%) - Login 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);
}

.form-card h2 {
  color: #ea580c;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.subtitle {
  color: #78350f;
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-weight: 500;
}

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

.input-group {
  position: relative;
  margin-bottom: 25px;
  width: 100%;
}

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

.input-group input {
  width: 100%;
  padding: 18px 50px 18px 50px; /* Increased right padding for eye icon */
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  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;
}

#email {
  background-color: #fff;
}

/* Password toggle button - FIXED POSITION */
.password-toggle {
  position: absolute;
  right: 15px; /* Adjusted from 18px to 15px */
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #92400e;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 8px; /* Added padding for better click area */
  width: 40px; /* Fixed width */
  height: 40px; /* Fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: background-color 0.2s ease;
  z-index: 2;
}

.password-toggle:hover {
  background-color: rgba(234, 88, 12, 0.1);
}

.password-toggle:active {
  background-color: rgba(234, 88, 12, 0.2);
}

/* Remember me & Forgot password row */
.remem-forgot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.remem-btn {
  display: flex;
  align-items: center;
}

.remem-btn input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: #ea580c;
  cursor: pointer;
}

#remem-lbl {
  color: #78350f;
  font-size: 0.95rem;
  cursor: pointer;
}

.forgot-password {
  color: #ea580c;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Login button */
.login-btn {
  width: 100%;
  padding: 18px;
  background-color: #f59e0b;
  color: #78350f;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 30px;
}

.login-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: 30px 0;
  color: #92400e;
  font-size: 0.9rem;
}

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

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

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

/* Social login buttons */
.social-login {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.social-btn {
  flex: 1;
  padding: 15px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.social-btn.google {
  color: #374151;
}

.social-btn.google:hover {
  border-color: #ea580c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.1);
}

.social-btn i {
  font-size: 1.1rem;
}

/* Switch auth link */
.switch-auth {
  text-align: center;
  color: #78350f;
  font-size: 0.95rem;
  margin-top: 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: 12px 16px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 0.95rem;
  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 {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  color: #78350f;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .login-container {
    flex-direction: column;
    min-height: auto;
  }

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

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

  .form-card {
    width: 100%;
    min-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);
  }

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

  .footer {
    position: static;
    margin-top: 40px;
    padding-bottom: 20px;
  }
}

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

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

  .welcome-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

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

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

  .subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .input-group input {
    padding: 16px 45px;
  }

  .social-login {
    flex-direction: column;
    gap: 10px;
  }
}

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

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

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

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

  .input-group input {
    font-size: 0.95rem;
  }
}

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