/* ============================================
   SACTM Alumni Authentication Page Styles
   ============================================ */

/* Auth Container */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Background with Image and Overlay */
.auth-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.auth-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(30, 60, 114, 0.95) 0%, 
    rgba(42, 82, 152, 0.9) 50%,
    rgba(30, 60, 114, 0.95) 100%);
}

/* Auth Card */
.auth-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 3rem;
  position: relative;
  z-index: 10;
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
}

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

.auth-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(30, 60, 114, 0.3);
}

.auth-title {
  color: #1e3c72;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.auth-subtitle {
  color: #6c757d;
  font-size: 0.95rem;
}

/* Form Styling */
.auth-form .form-label {
  color: #495057;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.auth-form .form-control {
  border: 2px solid #e1e8ed;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.auth-form .form-control:focus {
  border-color: #ffc107;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.auth-form .form-check-input:checked {
  background-color: #ffc107;
  border-color: #ffc107;
}

/* Button Styling */
.btn-auth-primary {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  border: none;
  color: #1e3c72;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}

.btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
  background: linear-gradient(135deg, #ffca28 0%, #ffa726 100%);
  color: #1e3c72;
}

/* Auth Links */
.auth-links {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e1e8ed;
}

.auth-links a {
  color: #2a5298;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Social Auth */
.social-auth {
  margin-top: 2rem;
  text-align: center;
}

.social-divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

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

.social-divider span {
  background: white;
  padding: 0 1rem;
  position: relative;
  color: #6c757d;
  font-size: 0.9rem;
}

/* Error Messages */
.auth-form .invalid-feedback,
.auth-form .alert {
  border-radius: 10px;
  font-size: 0.9rem;
}

.auth-form .alert-danger {
  background-color: #fff5f5;
  border-color: #feb2b2;
  color: #c53030;
}

/* Success Messages */
.auth-form .alert-success {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

/* Info Messages */
.auth-form .alert-info {
  background-color: #f0f9ff;
  border-color: #bae6fd;
  color: #075985;
}

/* Responsive Design */
@media (max-width: 576px) {
  .auth-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .auth-container {
    padding: 1rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card {
  animation: fadeInUp 0.6s ease;
}

/* Password Toggle Button */
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.25rem;
}

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

/* Loading State */
.btn-auth-primary.loading {
  position: relative;
  color: transparent;
}

.btn-auth-primary.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #1e3c72;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* Remember Me Checkbox */
.form-check-remember {
  margin-top: 1rem;
}

.form-check-remember .form-check-label {
  color: #6c757d;
  font-size: 0.95rem;
}

/* Help Text */
.form-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Back to Home Link */
.back-to-home {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 20;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-to-home:hover {
  color: #ffc107;
  transform: translateX(-5px);
}

/* Footer Link */
.auth-footer {
  text-align: center;
  margin-top: 2rem;
  color: #6c757d;
  font-size: 0.875rem;
}

.auth-footer a {
  color: #2a5298;
  text-decoration: none;
}

.auth-footer a:hover {
  color: #ffc107;
}