/* auth-pages.css — Premium standalone auth pages (forgot / reset password) */

.auth-page-section {
  position: relative;
  min-height: calc(100vh - 120px);
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, #f5f8fc 0%, #eef2f7 45%, #f8fafc 100%);
  overflow: hidden;
}

.auth-page-section::before,
.auth-page-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.45;
}

.auth-page-section::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.18) 0%, transparent 70%);
}

.auth-page-section::after {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: -60px;
  background: radial-gradient(circle, rgba(30, 41, 59, 0.1) 0%, transparent 70%);
}

.auth-page-card {
  position: relative;
  z-index: 1;
  border: none;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  animation: authPageSlideUp 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.auth-page-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 2.5rem 2.5rem 1.75rem;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}

.auth-page-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary, #e53935) 0%, #b91c1c 100%);
  box-shadow: 0 12px 28px rgba(229, 57, 53, 0.35);
}

.auth-page-icon.icon-reset {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}

.auth-page-title {
  font-weight: 800;
  font-size: 1.75rem;
  color: #1e293b;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.auth-page-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.auth-page-body {
  padding: 2rem 2.5rem 2.5rem;
}

/* Role toggle */
.auth-page-section .role-toggle-wrapper {
  background-color: #f1f5f9;
  border-radius: 100px;
  padding: 5px;
  position: relative;
  display: flex;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.auth-page-section .role-toggle-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.7rem 1rem;
  font-weight: 700;
  color: #64748b;
  border-radius: 100px;
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
  font-size: 0.95rem;
}

.auth-page-section .role-toggle-btn.active {
  color: #fff;
}

.auth-page-section .role-toggle-bg {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  background: linear-gradient(135deg, var(--primary, #e53935) 0%, #b91c1c 100%);
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
  z-index: 1;
}

.auth-page-section .role-toggle-btn.active[data-role="owner"] ~ .role-toggle-bg,
.auth-page-section #roleOwnerBtn.active ~ .role-toggle-bg {
  left: 50%;
}

/* Premium inputs */
.auth-page-section .input-label {
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-page-section .premium-input {
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.auth-page-section .premium-input:focus-within {
  background-color: #fff;
  border-color: var(--primary, #e53935);
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.auth-page-section .premium-input .input-group-text {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding-left: 1.25rem;
  padding-right: 0.5rem;
  font-size: 1.1rem;
}

.auth-page-section .premium-input .form-control {
  background: transparent;
  border: none;
  padding: 1rem 1.25rem 1rem 0;
  font-weight: 500;
  color: #334155;
  font-size: 1rem;
}

.auth-page-section .premium-input .form-control:focus {
  box-shadow: none;
}

.auth-page-section .premium-input .form-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.auth-page-section .password-toggle-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0 1.25rem;
  font-size: 1rem;
  transition: color 0.2s;
}

.auth-page-section .password-toggle-btn:hover {
  color: var(--primary, #e53935);
}

/* Submit button */
.auth-page-section .btn-auth-submit {
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--primary, #e53935) 0%, #b91c1c 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.3);
  transition: all 0.3s ease;
}

.auth-page-section .btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(229, 57, 53, 0.4);
  color: #fff;
}

.auth-page-section .btn-auth-submit.btn-success-gradient {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.auth-page-section .btn-auth-submit.btn-success-gradient:hover {
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4);
}

/* Footer link */
.auth-page-section .auth-footer-text {
  color: #64748b;
  font-size: 0.9rem;
}

.auth-page-section .auth-footer-link {
  color: var(--primary, #e53935);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-page-section .auth-footer-link:hover {
  color: #b91c1c;
  text-decoration: underline;
}

/* Premium alert */
.auth-page-alert {
  border: none;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-page-alert.alert-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border-left: 4px solid #f59e0b;
}

.auth-page-alert.alert-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
  border-left: 4px solid #3b82f6;
}

.auth-page-alert a {
  color: inherit;
  font-weight: 700;
}

/* Security note */
.auth-security-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.auth-security-note i {
  color: var(--primary, #e53935);
  font-size: 1.1rem;
  margin-top: 2px;
}

@media (max-width: 575.98px) {
  .auth-page-section {
    padding: 2rem 0 3rem;
  }

  .auth-page-header,
  .auth-page-body {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .auth-page-title {
    font-size: 1.45rem;
  }
}
