/**
 * Forgot Password – Professional business aesthetic
 * Clean, minimal, corporate – TypeScript/developer-inspired
 */

/* Override parent auth background when forgot-password is shown */
.authImage:has(.auth-forgot-wrap) {
  background-image: none !important;
  background-color: #f8fafc !important;
  min-height: 100vh;
}

/* Full-page layout – clean neutral background */
.auth-forgot-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f8fafc;
  font-family: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Paper wall – repeating logo pattern at 30° */
.auth-forgot-bg-pattern {
  position: absolute;
  width: 200%;
  height: 200%;
  left: -50%;
  top: -50%;
  background-repeat: repeat;
  background-size: 140px 140px;
  background-position: 0 0;
  transform: rotate(-30deg);
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}

.auth-forgot-wrap > .auth-forgot-card {
  position: relative;
  z-index: 1;
}

/* Neutral, professional palette */
.auth-forgot-wrap {
  --auth-fg: #0f172a;
  --auth-fg-muted: #475569;
  --auth-fg-subtle: #64748b;
  --auth-border: #e2e8f0;
  --auth-bg-input: #ffffff;
  --auth-accent: #2563eb;
  --auth-accent-hover: #1d4ed8;
  --auth-radius: 8px;
  --auth-radius-lg: 12px;
}

/* Centered card – clean, minimal */
.auth-forgot-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 2.5rem 2rem;
}

.auth-forgot-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.auth-forgot-logo img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.auth-forgot-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--auth-fg);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.auth-forgot-subheading {
  font-size: 0.9375rem;
  color: var(--auth-fg-muted);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
  text-align: center;
}

/* Form */
.auth-forgot-form .auth-forgot-field {
  margin-bottom: 1.25rem;
}

.auth-forgot-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--auth-fg);
  margin-bottom: 0.5rem;
}

.auth-forgot-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  color: var(--auth-fg);
  background: var(--auth-bg-input);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.auth-forgot-input::placeholder {
  color: var(--auth-fg-subtle);
}

.auth-forgot-input:focus {
  outline: none;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Primary button – solid, professional */
.auth-forgot-submit {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--auth-accent);
  border: none;
  border-radius: var(--auth-radius);
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  margin-top: 0.25rem;
}

.auth-forgot-submit:hover {
  background: var(--auth-accent-hover);
}

.auth-forgot-submit:active {
  transform: scale(0.99);
}

/* Cancel link */
.auth-forgot-cancel {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--auth-fg-subtle);
  text-decoration: none;
  font-weight: 500;
}

.auth-forgot-cancel:hover {
  color: var(--auth-fg);
}

/* Footer */
.auth-forgot-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--auth-border);
  font-size: 0.75rem;
  color: var(--auth-fg-subtle);
  text-align: center;
}

.auth-forgot-footer a {
  color: var(--auth-fg-muted);
  text-decoration: none;
  font-weight: 500;
}

.auth-forgot-footer a:hover {
  color: var(--auth-fg);
}

/* Alerts */
.auth-forgot-card .alert {
  border-radius: var(--auth-radius);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.auth-forgot-card .alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* RTL */
.auth-forgot-wrap[dir="rtl"] .auth-forgot-heading,
.auth-forgot-wrap[dir="rtl"] .auth-forgot-subheading {
  text-align: right;
}

.auth-forgot-wrap[dir="rtl"] .auth-forgot-cancel {
  text-align: center;
}
