/* ==========================================================================
   MEGAEDU - AUTHENTICATION PAGES (FORGOT PASSWORD / RESET PASSWORD)
   ========================================================================== */

.auth-page-section {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  min-height: calc(100vh - 140px);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
}

.auth-card-wrapper {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.auth-card {
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.auth-card-header {
  background: linear-gradient(135deg, #1CCEDF 0%, #397CAE 50%, #5B247A 100%);
  padding: 2.25rem 1.5rem 1.75rem;
  text-align: center;
  position: relative;
}

.auth-card-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
  color: #5B247A;
}

.auth-card-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: -0.3px;
}

.auth-card-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  margin-bottom: 0;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

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

.auth-alert {
  display: none;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.auth-alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.auth-alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-btn-primary {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.auth-btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.auth-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-footer-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

.auth-link-highlight {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.auth-link-highlight:hover {
  text-decoration: underline;
}

/* Password Eye Icons */
.auth-input-group-pass {
  position: relative;
}

.auth-pass-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 4px;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.auth-pass-toggle-btn:hover {
  color: #3b82f6;
}

/* Expired Token Notice Box */
.auth-notice-expired {
  text-align: center;
  padding: 1.5rem 1rem;
}

.auth-notice-expired svg {
  color: #f59e0b;
  margin-bottom: 1rem;
}

/* Modal Forgot & Reset Password */
.auth-modal-box {
  max-width: 580px;
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #ffffff;
  display: none;
}

.auth-modal-header {
  background: linear-gradient(135deg, #1CCEDF 0%, #397CAE 50%, #5B247A 100%);
}

.auth-modal-icon {
  border-color: #1CCEDF;
}

.letter-spacing-2 {
  letter-spacing: 4px;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
