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

:root {
  --primary-color: #003580;
  --primary-hover: #00224d;
  --secondary-color: #0071c2;
  --success-color: #28a745;
  --error-color: #dc3545;
  --warning-color: #ffc107;
  --text-dark: #333;
  --text-light: #666;
  --border-color: #ddd;
  --bg-light: #f5f5f5;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
}

/* Auth Container */
.auth-container {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(180deg, #003580 0%, #00224d 100%);
}

/* Split Screen Layout */
.auth-split {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 2rem auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}

/* Left Side - Visual */
.auth-visual {
  flex: 1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-image-container {
  flex: 1;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-text-content {
  background: linear-gradient(180deg, #003580 0%, #00224d 100%);
  padding: 3rem 2.5rem;
  color: var(--white);
  text-align: center;
}

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

.visual-logo {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.auth-text-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.auth-text-content p {
  font-size: 1rem;
  opacity: 0.95;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--white);
}

.visual-features {
  text-align: left;
  max-width: 350px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--white);
}

.feature-item i {
  font-size: 1.2rem;
  margin-right: 0.75rem;
  color: #4facfe;
  flex-shrink: 0;
}

/* Right Side - Form */
.auth-form-container {
  flex: 1;
  padding: 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  max-width: 550px;
  margin: 0 auto;
}

.auth-header {
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-size: 2.25rem;
  color: #1a202c;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.auth-header p {
  color: #718096;
  font-size: 1.05rem;
}

.auth-header p a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.auth-header p a:hover {
  text-decoration: underline;
}

/* Alert Message */
.alert-message {
  padding: 0.875rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  display: none;
  font-size: 0.95rem;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Auth Form */
.auth-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.625rem;
  color: #2d3748;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group label i {
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

.form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f7fafc;
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 113, 194, 0.1);
}

/* Password Input with Toggle */
.password-input {
  position: relative;
}

.password-input input {
  padding-right: 3rem;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: var(--text-dark);
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  width: 100%;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.375rem;
}

.strength-fill {
  height: 100%;
  width: 0;
  transition: all 0.3s ease;
  background: var(--border-color);
}

.strength-fill.weak {
  width: 25%;
  background: var(--error-color);
}

.strength-fill.fair {
  width: 50%;
  background: var(--warning-color);
}

.strength-fill.good {
  width: 75%;
  background: #17a2b8;
}

.strength-fill.strong {
  width: 100%;
  background: var(--success-color);
}

.strength-text {
  font-size: 0.85rem;
  color: var(--text-light);
}

.strength-text span {
  font-weight: 500;
}

/* Checkboxes */
.form-checkbox {
  margin-bottom: 1.25rem;
}

.form-checkbox label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-weight: normal;
  font-size: 0.95rem;
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  margin-right: 0.625rem;
  margin-top: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox span {
  color: var(--text-light);
}

.form-checkbox a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.form-checkbox a:hover {
  text-decoration: underline;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 1.125rem;
  background: #0071c2;
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 113, 194, 0.2);
}

.btn-submit:hover:not(:disabled) {
  background: #00609e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 113, 194, 0.4);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit i {
  margin-left: 0.625rem;
}

.btn-loader {
  display: none;
}

.btn-loader i {
  margin-right: 0.5rem;
}

/* Social Login */
.social-login {
  margin: 2rem 0;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider span {
  padding: 0 1rem;
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-social {
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-social:hover {
  border-color: var(--text-light);
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.btn-google {
  color: #db4437;
}

.btn-facebook {
  color: #4267B2;
}

/* Auth Help */
.auth-help {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.auth-help p {
  color: var(--text-light);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-help i {
  margin-right: 0.5rem;
  color: var(--success-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .auth-split {
    flex-direction: column;
    margin: 1rem;
  }
  
  .auth-visual {
    padding: 3rem 2rem;
  }
  
  .visual-content h1 {
    font-size: 2rem;
  }
  
  .visual-features {
    margin-top: 2rem;
  }
  
  .auth-form-container {
    padding: 3rem 2rem;
  }
}

@media (max-width: 576px) {
  .auth-split {
    margin: 0;
    border-radius: 0;
  }
  
  .auth-visual {
    padding: 2rem 1.5rem;
  }
  
  .visual-content h1 {
    font-size: 1.75rem;
  }
  
  .visual-content p {
    font-size: 1rem;
  }
  
  .auth-form-container {
    padding: 2rem 1.5rem;
  }
  
  .auth-header h2 {
    font-size: 1.75rem;
  }
  
  .social-buttons {
    grid-template-columns: 1fr;
  }
  
  .feature-item {
    font-size: 1rem;
  }
}

/* Loading State */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fa-spinner {
  animation: spin 1s linear infinite;
}

/* Focus States for Accessibility */
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .auth-visual {
    display: none;
  }
  
  .auth-split {
    box-shadow: none;
  }
}
