/* ============================================
   AUTHENTICATION PAGES STYLES
   ============================================ */

.auth-page {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: calc(100vh - 180px);
  padding: 60px 0;
}

.auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  border: 1px solid #e5e7eb;
}

.auth-header .auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  color: #0056d2;
  text-decoration: none;
}

.auth-logo i {
  font-size: 28px;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: #666666;
  margin-bottom: 32px;
  font-size: 16px;
}

/* Benefits Box (Registration only) */
.benefits-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #bbf7d0;
}

.benefits-title {
  color: #16a34a;
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 14px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.benefit-item i {
  color: #16a34a;
  font-size: 14px;
  flex-shrink: 0;
}

/* Form Styling */
.auth-form {
  margin-bottom: 32px;
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  z-index: 2;
}

.input-with-icon .form-control {
  padding-left: 44px;
  height: 48px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
}

.input-with-icon .form-control:focus {
  border-color: #0056d2;
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
}

.password-toggle:hover {
  color: #374151;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-check-label {
  font-size: 14px;
  color: #374151;
}

.forgot-password {
  font-size: 14px;
  color: #0056d2;
  text-decoration: none;
  font-weight: 600;
}

.forgot-password:hover {
  color: #004bb5;
  text-decoration: underline;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 8px;
}

.password-strength .progress {
  height: 4px;
  background-color: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.password-strength .progress-bar {
  transition: all 0.3s ease;
  border-radius: 2px;
}

.password-strength small {
  font-size: 12px;
  color: #6b7280;
}

/* Buttons */
.btn-primary {
  height: 48px;
  font-weight: 600;
  font-size: 16px;
}

.btn-success {
  background-color: #16a34a;
  border-color: #16a34a;
  height: 48px;
  font-weight: 600;
  font-size: 16px;
}

.btn-success:hover {
  background-color: #15803d;
  border-color: #15803d;
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.divider span {
  background: white;
  padding: 0 16px;
  color: #9ca3af;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* Social Login */
.social-login {
  margin-bottom: 24px;
}

.btn-social {
  width: 100%;
  height: 48px;
  border: 2px solid #e5e7eb;
  background: white;
  color: #374151;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-social:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #374151;
  transform: translateY(-1px);
}

.btn-google:hover {
  border-color: #4285f4;
  color: #4285f4;
}

.btn-github:hover {
  border-color: #333;
  color: #333;
}

/* Footer */
.auth-footer {
  color: #6b7280;
  font-size: 14px;
}

.auth-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.auth-links a {
  color: #6b7280;
  font-size: 14px;
}

.auth-links a:hover {
  color: #374151;
}

/* Alerts */
.alert {
  border-radius: 8px;
  border: none;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 14px;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* Loading State */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .auth-page {
    padding: 40px 0;
  }
  
  .auth-card {
    padding: 32px 24px;
    margin: 0 16px;
  }
  
  .auth-title {
    font-size: 24px;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .auth-links {
    flex-direction: column;
    gap: 12px;
  }
  
  .benefits-box {
    padding: 16px;
  }
}
