/* ==================== GENERAL ==================== */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==================== LOGIN PAGE ==================== */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5eefa 0%, #ede0f5 50%, #faf7fc 100%);
  padding: 40px 20px;
  margin-top: 0px;
}

.login-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 900px;
  min-height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 60px rgba(110,52,130,0.15);
  margin-top: 0px;
}

/* ==================== LEFT SECTION ==================== */

.login-form-section {
  background: white;
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-header {
  margin-bottom: 35px;
}

.login-form-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6e3482;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
}

.social-icon:hover {
  border-color: #6e3482;
  background: linear-gradient(135deg, #9b5bb5 0%, #6e3482 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(110,52,130,0.3);
}

/* ==================== ALERTS ==================== */

.alert-container {
  margin-bottom: 20px;
}

.login-alert {
  padding: 12px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.login-alert-error {
  background: #fff5f5;
  color: #d32f2f;
  border-left: 4px solid #ff4757;
}

.login-alert-success {
  background: #f0fdf4;
  color: #16a34a;
  border-left: 4px solid #22c55e;
}

.login-alert i {
  font-size: 16px;
  flex-shrink: 0;
}

/* ==================== LOGIN FORM ==================== */

.login-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #f8f9fa;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #1a1a1a;
}

.form-input::placeholder {
  color: #adb5bd;
}

.form-input:focus {
  outline: none;
  border-color: #6e3482;
  background: white;
  box-shadow: 0 0 0 4px rgba(110,52,130,0.10);
}

/* ==================== FORM OPTIONS ==================== */

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 12px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #6e3482;
}

.checkbox-wrapper label {
  font-size: 13px;
  color: #495057;
  cursor: pointer;
  margin: 0;
  user-select: none;
  font-weight: 500;
}

.forgot-link {
  color: #6e3482;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}

.forgot-link:hover {
  color: #9b5bb5;
  text-decoration: underline;
}

/* ==================== LOGIN BUTTON ==================== */

.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #9b5bb5 0%, #6e3482 55%, #572766 100%);
  border: none;
  color: white;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 15px rgba(110,52,130,0.25);
  text-transform: capitalize;
}

.btn-login:hover {
  background: linear-gradient(135deg, #6e3482 0%, #9b5bb5 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(110,52,130,0.35);
}

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

/* ==================== RIGHT SECTION - TOGGLE PANEL ==================== */

.toggle-section {
  background: linear-gradient(135deg, #9b5bb5 0%, #6e3482 55%, #572766 100%);
  color: white;
  padding: 50px 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.toggle-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.toggle-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.toggle-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.toggle-content p {
  font-size: 15px;
  margin-bottom: 25px;
  opacity: 0.95;
  font-weight: 400;
}

.btn-signup {
  display: inline-block;
  padding: 11px 30px;
  background: transparent;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-signup:hover {
  background: white;
  color: #6e3482;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255,255,255,0.3);
}

/* ==================== RESPONSIVE - TABLET ==================== */

@media (max-width: 1024px) {
  .login-wrapper {
    grid-template-columns: 1fr;
    height: auto;
    max-width: 100%;
  }
  .login-form-section { padding: 40px 35px; }
  .toggle-section { padding: 40px 35px; min-height: 300px; }
  .login-form-header h2 { font-size: 28px; margin-bottom: 16px; }
  .toggle-content h2 { font-size: 26px; margin-bottom: 10px; }
  .toggle-content p { font-size: 14px; margin-bottom: 20px; }
}

/* ==================== RESPONSIVE - MOBILE ==================== */

@media (max-width: 768px) {
  .login-page { padding: 30px 16px; }
  .login-wrapper { grid-template-columns: 1fr; height: auto; border-radius: 16px; }
  .login-form-section { padding: 35px 25px; }
  .toggle-section { padding: 35px 25px; min-height: 250px; }
  .login-form-header h2 { font-size: 26px; margin-bottom: 14px; }
  .social-icon { width: 36px; height: 36px; font-size: 14px; }
  .form-group { margin-bottom: 18px; }
  .form-input { padding: 11px 12px; font-size: 13px; }
  .btn-login { padding: 12px; font-size: 13px; }
  .toggle-content h2 { font-size: 24px; margin-bottom: 8px; }
  .toggle-content p { font-size: 13px; margin-bottom: 18px; }
  .btn-signup { padding: 10px 26px; font-size: 12px; }
  .form-options { flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
  .forgot-link { align-self: flex-end; margin-top: 8px; }
}

/* ==================== RESPONSIVE - SMALL MOBILE ==================== */

@media (max-width: 480px) {
  .login-page { padding: 20px 12px; }
  .login-wrapper { height: auto; border-radius: 14px; }
  .login-form-section { padding: 28px 20px; }
  .toggle-section { padding: 28px 20px; min-height: 220px; }
  .login-form-header h2 { font-size: 22px; margin-bottom: 12px; }
  .login-form-header { margin-bottom: 25px; }
  .social-icon { width: 34px; height: 34px; font-size: 13px; }
  .form-label { font-size: 11px; }
  .form-input { padding: 10px 11px; font-size: 13px; border-radius: 6px; }
  .form-group { margin-bottom: 16px; }
  .btn-login { padding: 11px; font-size: 12px; border-radius: 6px; }
  .toggle-content h2 { font-size: 20px; margin-bottom: 8px; }
  .toggle-content p { font-size: 12px; margin-bottom: 16px; }
  .btn-signup { padding: 9px 22px; font-size: 11px; }
  .checkbox-wrapper label { font-size: 12px; }
  .forgot-link { font-size: 12px; }
  .form-options { gap: 8px; }
  .alert-container { margin-bottom: 16px; }
  .login-alert { padding: 10px 12px; font-size: 12px; margin-bottom: 8px; }
}
