/* ===== Login & Auth Pages ===== */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
  padding: 2rem 1rem;
}

.auth-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  animation: authSlideUp 0.4s ease-out;
}

@keyframes authSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card-header {
  background: linear-gradient(135deg, #0d6efd 0%, #084298 100%);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  color: #fff;
}

.auth-card-header img {
  width: 64px;
  height: auto;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
}

.auth-card-header h4 {
  margin: 0;
  font-weight: 600;
  font-size: 1.25rem;
}

.auth-card-header p {
  margin: 0.5rem 0 0;
  opacity: 0.85;
  font-size: 0.875rem;
}

.auth-card-body {
  padding: 2rem;
}

.auth-input-group {
  position: relative;
  margin-bottom: 1.25rem;
}

.auth-input-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.375rem;
}

.auth-input-group .input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  font-size: 0.875rem;
  pointer-events: none;
}

.auth-input-group .form-control {
  padding-left: 2.5rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  border: 1.5px solid #dee2e6;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-group .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.auth-input-group .form-control.is-invalid,
.auth-input-group .form-control:invalid {
  border-color: #dc3545;
}

.auth-input-group .toggle-password {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #adb5bd;
  cursor: pointer;
  padding: 0;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.auth-input-group .toggle-password:hover {
  color: #495057;
}

.auth-btn {
  width: 100%;
  height: 2.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s;
}

.auth-btn:active {
  transform: scale(0.98);
}

.auth-btn-primary {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}

.auth-btn-primary:hover {
  background: linear-gradient(135deg, #0b5ed7, #084298);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.auth-card-footer {
  padding: 0 2rem 1.5rem;
  text-align: center;
}

.auth-card-footer a {
  color: #0d6efd;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-card-footer a:hover {
  color: #084298;
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
  color: #adb5bd;
  font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #dee2e6;
}

.auth-divider span {
  padding: 0 0.75rem;
}

.auth-alert {
  border-radius: 0.5rem;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: none;
}

.auth-alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border-left: 4px solid #dc3545;
}

.auth-alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border-left: 4px solid #198754;
}

.password-requirements {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.375rem;
  padding-left: 0.25rem;
}

.password-requirements i {
  margin-right: 0.25rem;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #6c757d;
  font-size: 0.875rem;
  text-decoration: none;
  margin-top: 1rem;
  transition: color 0.2s;
}

.auth-back-link:hover {
  color: #0d6efd;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-card-body {
    padding: 1.5rem;
  }
  .auth-card-header {
    padding: 1.5rem 1.5rem 1.25rem;
  }
}
