/* Authentication Layout Styles */
.auth-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-background {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-overlay {
  width: 100%;
  max-width: 450px;
}

/* Auth Card */
.auth-container {
  width: 100%;
}

.auth-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  padding: 2.5rem 2rem 1rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c5aa0;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
}

.auth-content {
  padding: 2rem;
}

/* Form Styles */
.auth-content .form-group {
  margin-bottom: 1.5rem;
}

.auth-content label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-content .form-control {
  padding: 0.875rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fafbfc;
}

.auth-content .form-control:focus {
  border-color: #2c5aa0;
  background-color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.15);
}

.auth-content .form-control::placeholder {
  color: #adb5bd;
}

.form-check {
  margin: 1.5rem 0;
}

.form-check-input {
  margin-top: 0.125rem;
}

.form-check-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: normal !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* Button Styles */
.btn-block {
  width: 100%;
  padding: 0.875rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
  color: white;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
  background: linear-gradient(135deg, #1e3a8a 0%, #2c5aa0 100%);
}

.btn-block:focus {
  box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* Divider */
.auth-divider {
  margin: 2rem 0;
  position: relative;
  text-align: center;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #dee2e6;
}

.auth-divider span {
  background-color: white;
  color: #6c757d;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* External Login Buttons */
.external-logins .btn-outline-secondary {
  width: 100%;
  padding: 0.875rem;
  margin-bottom: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  color: #495057;
  background-color: white;
  font-weight: 500;
  transition: all 0.3s ease;
}

.external-logins .btn-outline-secondary:hover {
  border-color: #2c5aa0;
  color: #2c5aa0;
  background-color: #f8f9fa;
  transform: translateY(-1px);
}

.external-logins .btn-outline-secondary i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Auth Links */
.auth-links {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f3f4;
}

.auth-links a {
  color: #2c5aa0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
  margin: 0.5rem 0;
  transition: color 0.3s ease;
}

.auth-links a:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

/* Alert Styles */
.alert-danger {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.text-danger {
  color: #dc3545 !important;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

/* Responsive Design */
@media (max-width: 576px) {
  .auth-background {
    padding: 1rem;
  }
  
  .auth-header {
    padding: 2rem 1.5rem 1rem 1.5rem;
  }
  
  .auth-header h1 {
    font-size: 1.5rem;
  }
  
  .auth-content {
    padding: 1.5rem;
  }
}

/* Focus States */
.auth-content .form-control:focus,
.btn-block:focus,
.external-logins .btn-outline-secondary:focus {
  outline: none;
}

/* Home page auth actions */
.auth-actions-home .btn {
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.auth-actions-home .btn i {
  font-size: 1.2rem;
}

.auth-actions-home .btn-primary {
  background: linear-gradient(135deg, #32373c 0%, #1e3a8a 100%);
  border: none;
  color: white;
}

.auth-actions-home .btn-primary:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #32373c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.auth-actions-home .btn-outline-secondary {
  background: white;
  border: 2px solid #e9ecef;
  color: #495057;
}

.auth-actions-home .btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #32373c;
  color: #32373c;
  transform: translateY(-1px);
}

.auth-links p {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Animation for form validation */
.text-danger {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}