/* ============================================================
   forgot-password.css
   Standalone auth page — does NOT import dashboard-layout.css
   Mobile-first responsive: mobile → tablet → desktop
   rem  → all fonts, spacing, sizing
   px   → borders and border-radius only
   No hardcoded hex — CSS variables only
   ============================================================ */

:root {
  --fp-primary:        #6F00FF;
  --fp-primary-hover:  #5800CC;
  --fp-danger:         #E11727;
  --fp-success-bg:     #F0FDF4;
  --fp-success-text:   #166534;
  --fp-success-border: #166534;
  --fp-error-bg:       #FEF2F2;
  --fp-error-text:     #991B1B;
  --fp-error-border:   #E11727;
  --fp-text-dark:      #1A1A1A;
  --fp-text-muted:     #6B7280;
  --fp-border:         #E2E8F0;
  --fp-border-focus:   #6F00FF;
  --fp-bg:             #FFFFFF;
  --fp-bg-image:       #FDF6EC;
  --fp-input-radius:   8px;
  --fp-btn-radius:     8px;
  --fp-transition:     0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--fp-bg);
  color: var(--fp-text-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}


.fp-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

/* Image panel hidden on mobile */
.fp-image-panel {
  display: none;
}

.fp-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Form panel */
.fp-form-panel {
  width: 100%;
  max-width: 25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1.25rem;
}

.fp-logo {
  display: inline-block;
}

.fp-logo img {
  display: block;
}

/* Header row — back arrow + title */
.fp-form-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fp-back-arrow {
  display: flex;
  align-items: center;
  color: var(--fp-text-dark);
  text-decoration: none;
  transition: color var(--fp-transition);
  flex-shrink: 0;
}

.fp-back-arrow:hover {
  color: var(--fp-primary);
}

.fp-title {
    display: flex;
    justify-content: center;
    align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fp-text-dark);
  line-height: 1.2;
}

/* Subtitle */
.fp-subtitle {
  font-size: 0.9rem;
  color: var(--fp-text-muted);
  line-height: 1.5;
  width: 20rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -0.25rem;
}

.fp-alert {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--fp-input-radius);
  line-height: 1.5;
}

.fp-alert--error {
  background: var(--fp-error-bg);
  color: var(--fp-error-text);
  border: 1px solid var(--fp-error-border);
}

.fp-alert--success {
  background: var(--fp-success-bg);
  color: var(--fp-success-text);
  border: 1px solid var(--fp-success-border);
}

.fp-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1.25rem;
}

.fp-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.fp-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fp-text-muted);
}

.fp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.fp-input-icon {
  position: absolute;
  left: 0.875rem;
  display: flex;
  align-items: center;
  color: var(--fp-text-muted);
  pointer-events: none;
}

.fp-input {
  width: 100%;
  height: 3rem;
  padding: 0 0.875rem 0 2.75rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--fp-text-dark);
  background: var(--fp-bg);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-input-radius);
  outline: none;
  transition: border-color var(--fp-transition);
}

.fp-input::placeholder {
  color: var(--fp-text-muted);
  font-weight: 400;
}

.fp-input:focus {
  border-color: var(--fp-border-focus);
}

.fp-input.is-error {
  border-color: var(--fp-danger);
}

/* Field error */
.fp-field-err {
  font-size: 0.78rem;
  color: var(--fp-danger);
  min-height: 1rem;
  display: block;
}

.fp-btn-submit {
  width: 100%;
  height: 3rem;
  background: var(--fp-primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: var(--fp-btn-radius);
  cursor: pointer;
  transition: background var(--fp-transition), opacity var(--fp-transition);
}

.fp-btn-submit:hover:not(:disabled) {
  background: var(--fp-primary-hover);
}

.fp-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.fp-back-to-login {
  text-align: center;
  font-size: 0.8rem;
  color: var(--fp-text-muted);
  text-decoration: none;
  transition: color var(--fp-transition);
}

.fp-back-to-login:hover {
  color: var(--fp-primary);
}

/* ════════════════════════════════════════════════
   TABLET (768px) — form centered, no image
   ════════════════════════════════════════════════ */
@media (min-width: 48rem) {
  .fp-container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem;
    gap: 1.5rem;
    min-height: 100vh;
  }

  .fp-image-panel {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
  }

  .fp-illustration {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
  }

  .fp-form-panel {
    flex: 1;
    max-width: none;
    width: auto;
    gap: 1.5rem;
    justify-content: center;
  }

  .fp-title {
    font-size: 1.75rem;
  }

  .fp-subtitle {
    width: 19rem;
    text-wrap: wrap;
  }
}


   /* DESKTOP (1024px) — image left, form right */
@media (min-width: 64rem) {

  .fp-container {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    max-width: 68rem;
    margin: 0 auto;
    min-height: 100vh;
    padding: 0;
    gap: 0;
  }

  .fp-image-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    border-radius: 12px 0 0 12px;
    padding: 2.5rem;
    overflow: hidden;
  }

  .fp-illustration {
    width: 100%;
    max-width: 30rem;
    height: auto;
    object-fit: contain;
    border-radius: 0;
  }

  /* Form panel */
  .fp-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5rem;
    max-width: none;
    gap: 1.75rem;
  }

  .fp-back-arrow {
    display: none;
  }

  .fp-form-header {
    justify-content: flex-start;
  }

  .fp-title {
    font-size: 2rem;
  }

}

.fp-reset-link-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
 
.fp-reset-link-text {
  font-size: 0.875rem;
  color: #6b7280;
}
 
.fp-reset-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #8F00FF;
  text-decoration: none;
  transition: gap 0.15s, color 0.15s;
}
 
.fp-reset-link:hover {
  color: #7500d4;
  gap: 0.4rem;
  text-decoration: underline;
}