/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  line-height: 1.6;
}

/* Main Container */
.auth-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card Layout */
.auth-card {
  display: flex;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  min-height: 700px;
  transition: transform 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-5px);
}

/* Left Side - Brand & Info */
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg);
}

/* Brand Section */
.brand-section {
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.logo-circle {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 36px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.brand-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.brand-tagline {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 300;
}

/* Welcome Section */
.welcome-section {
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.welcome-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.welcome-text {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.9;
  max-width: 400px;
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateX(10px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.feature-text p {
  font-size: 14px;
  opacity: 0.8;
}

/* Quote Section */
.quote-section {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.quote-section i {
  font-size: 24px;
  opacity: 0.5;
  margin-bottom: 10px;
  display: block;
}

.quote {
  font-style: italic;
  font-size: 18px;
  opacity: 0.9;
}

/* Right Side - Form */
.auth-right {
  flex: 1.2;
  padding: 50px 60px;
  background: white;
  display: flex;
  flex-direction: column;
}

/* Form Header */
.form-header {
  margin-bottom: 40px;
}

.form-header h2 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-subtitle {
  color: #7f8c8d;
  font-size: 16px;
}

/* Messages */
.message-alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  animation: slideIn 0.3s ease;
}

.message-alert.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-alert.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message-alert.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Styles */
.login-form {
  flex: 1;
}

.form-group {
  margin-bottom: 30px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-with-icon {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 18px 20px 18px 50px;
  border: 2px solid #e8f0fe;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form-input:focus {
  outline: none;
  border-color: #2ecc71;
  background: white;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8c8d;
  font-size: 18px;
  pointer-events: none;
}

#togglePassword {
  left: auto;
  right: 20px;
  cursor: pointer;
  pointer-events: all;
}

.input-hint {
  font-size: 13px;
  color: #95a5a6;
  margin-top: 6px;
  margin-left: 5px;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  color: #34495e;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 20px;
  width: 20px;
  background: #f8fafc;
  border: 2px solid #e8f0fe;
  border-radius: 6px;
  margin-right: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-container input:checked ~ .checkmark {
  background: #2ecc71;
  border-color: #2ecc71;
}

.checkmark:after {
  content: "✓";
  position: absolute;
  display: none;
  color: white;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.forgot-link {
  color: #2ecc71;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #27ae60;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 30px 0;
  color: #95a5a6;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e8f0fe;
}

.divider span {
  padding: 0 15px;
  font-size: 14px;
}

/* Social Login */
.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.social-btn {
  padding: 15px;
  border: 2px solid #e8f0fe;
  border-radius: 12px;
  background: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.social-btn.google {
  color: #DB4437;
}

.social-btn.google:hover {
  background: #DB4437;
  color: white;
  border-color: #DB4437;
}

.social-btn.facebook {
  color: #4267B2;
}

.social-btn.facebook:hover {
  background: #4267B2;
  color: white;
  border-color: #4267B2;
}

/* Register Section */
.register-section {
  text-align: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #e8f0fe;
}

.register-section p {
  color: #7f8c8d;
  font-size: 15px;
}

.register-link {
  color: #2ecc71;
  text-decoration: none;
  font-weight: 600;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.register-link:hover {
  color: #27ae60;
  text-decoration: underline;
}

/* Security Notice */
.security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #95a5a6;
  font-size: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e8f0fe;
}

/* Responsive Design */
@media (max-width: 992px) {
  .auth-card {
    flex-direction: column;
    min-height: auto;
  }
  
  .auth-left {
    padding: 40px 30px;
  }
  
  .auth-right {
    padding: 40px 30px;
  }
  
  .social-login {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  body {
    padding: 10px;
  }
  
  .auth-card {
    border-radius: 16px;
  }
  
  .auth-left, .auth-right {
    padding: 30px 20px;
  }
  
  .brand-title {
    font-size: 28px;
  }
  
  .form-header h2 {
    font-size: 26px;
  }
  
  .form-input {
    padding: 16px 20px 16px 50px;
  }
}

/* Password Strength Meter */
.password-strength {
  margin-top: 10px;
}

.strength-meter {
  width: 100%;
  height: 6px;
  background: #e8f0fe;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}

.strength-bar {
  height: 100%;
  width: 0%;
  background: #e74c3c;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.strength-text {
  font-size: 13px;
  color: #7f8c8d;
}

#strengthValue {
  font-weight: 600;
}

/* Terms & Conditions Link */
.terms-link {
  color: #2ecc71;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.terms-link:hover {
  color: #27ae60;
  text-decoration: underline;
}

/* Focus state for form groups */
.form-group.focused .form-label {
  color: #2ecc71;
}

.form-group.focused .input-icon {
  color: #2ecc71;
}

/* Enhanced checkbox for terms */
.checkbox-container .terms-link {
  margin: 0 4px;
  font-weight: 600;
}

/* Forgot Password Specific Styles */
.reset-instructions {
  margin: 40px 0;
  background: #f8fafc;
  border-radius: 16px;
  padding: 25px;
  border: 1px solid #e8f0fe;
}

.instruction-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
  position: relative;
}

.instruction-step:last-child {
  margin-bottom: 0;
}

.instruction-step::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 50px;
  width: 2px;
  height: calc(100% + 10px);
  background: #e8f0fe;
  z-index: 1;
}

.instruction-step:last-child::after {
  display: none;
}

.step-number {
  width: 50px;
  height: 50px;
  background: #2ecc71;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.step-content h4 {
  color: #2c3e50;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
}

.step-content p {
  color: #7f8c8d;
  font-size: 14px;
  line-height: 1.5;
}

/* Login Section */
.login-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.back-to-login-btn {
  padding: 15px 30px;
  background: #f8fafc;
  color: #2c3e50;
  border: 2px solid #e8f0fe;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.back-to-login-btn:hover {
  background: #2ecc71;
  color: white;
  border-color: #2ecc71;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.need-help {
  color: #7f8c8d;
  font-size: 14px;
  text-align: center;
}

.help-link {
  color: #2ecc71;
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
  transition: color 0.3s ease;
}

.help-link:hover {
  color: #27ae60;
  text-decoration: underline;
}

/* Form Header Adjustments for Reset Page */
.auth-right .form-header h2 {
  color: #2c3e50;
  font-size: 32px;
  margin-bottom: 10px;
}

/* Security Notice for Reset Page */
.security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #95a5a6;
  font-size: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e8f0fe;
}

/* Success Message Specific Styles */
.message-alert.success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #b1dfbb;
  animation: slideIn 0.3s ease;
}

.message-alert.success i {
  color: #155724;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .reset-instructions {
    padding: 20px;
  }
  
  .instruction-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .instruction-step::after {
    left: 25px;
    top: 60px;
    height: calc(100% + 5px);
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .login-section {
    flex-direction: column;
  }
  
  .back-to-login-btn {
    width: 100%;
  }
}

/* Animation for Success Message */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Focus States */
.form-group.focused .form-label {
  color: #2ecc71;
}

.form-group.focused .input-icon {
  color: #2ecc71;
}

/* Email Validation Styles */
.form-input.valid {
  border-color: #2ecc71;
  background: linear-gradient(135deg, #f8fff9 0%, #f0f9f0 100%);
}

.form-input.invalid {
  border-color: #e74c3c;
  background: linear-gradient(135deg, #fff9f9 0%, #fdf0f0 100%);
}

/* Form Group Error State */
.form-group.error .form-label {
  color: #e74c3c;
}

.form-group.error .input-icon {
  color: #e74c3c;
}

/* Submit Button Specific */
.submit-btn {
  margin-bottom: 30px;
}