/* Forgot Password page styles (UnQbdWeb2) */

/* ==============================================
   PAGE LAYOUT
   ============================================== */

.forgot-password-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 3rem 3rem 3rem;
    background-color: var(--bg-color, #ffffff);
}

.forgot-password-section {
    width: 100%;
    max-width: 500px;
}

.forgot-password-container {
    width: 100%;
}

/* ==============================================
   CARD
   ============================================== */

.forgot-password-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    border: 1px solid rgba(2, 6, 23, 0.08);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.08);
    padding: 2.5rem 2rem 2rem 2rem;
}

.forgot-password-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.forgot-password-title {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color, #00b4ff);
    font-weight: 900;
    letter-spacing: -1px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.05;
}

.forgot-password-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* ==============================================
   FORM
   ============================================== */

.forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.forgot-password-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.forgot-password-form-label {
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
}

.forgot-password-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(2, 6, 23, 0.15);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: #334155;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forgot-password-form-input:focus {
    outline: none;
    border-color: var(--primary-color, #00b4ff);
    box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.1);
}

.forgot-password-form-input::placeholder {
    color: #94a3b8;
}

/* ==============================================
   SUBMIT BUTTON
   ============================================== */

.forgot-password-submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color, #00b4ff);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.forgot-password-submit-button:hover {
    background: var(--secondary-color, #0174B1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 180, 255, 0.3);
}

/* ==============================================
   LOADING STATE
   ============================================== */

.forgot-password-loading {
    text-align: center;
    padding: 2rem 1rem;
}

.forgot-password-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem auto;
    border: 4px solid rgba(0, 180, 255, 0.2);
    border-top-color: var(--primary-color, #00b4ff);
    border-radius: 50%;
    animation: forgot-password-spin 0.8s linear infinite;
}

@keyframes forgot-password-spin {
    to { transform: rotate(360deg); }
}

.forgot-password-loading-title {
    margin: 0 0 0.5rem 0;
    color: #0f172a;
    font-weight: 700;
    font-size: 1.4rem;
}

.forgot-password-loading-text {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* ==============================================
   SUCCESS STATE
   ============================================== */

.forgot-password-success {
    text-align: center;
    padding: 2rem 1rem;
}

.forgot-password-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    color: #10b981;
    font-size: 2.5rem;
}

.forgot-password-success-title {
    margin: 0 0 0.75rem 0;
    color: #10b981;
    font-weight: 700;
    font-size: 1.5rem;
}

.forgot-password-success-text {
    margin: 0 0 1rem 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.forgot-password-success-support {
    margin: 0 0 1.5rem 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.forgot-password-support-link {
    color: #f59e0b;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password-support-link:hover {
    color: #d97706;
    text-decoration: underline;
}

.forgot-password-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.forgot-password-back-button:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.forgot-password-back-button i {
    font-size: 1rem;
}

/* ==============================================
   SIGNUP PROMPT
   ============================================== */

.forgot-password-signup-prompt {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(2, 6, 23, 0.08);
}

.forgot-password-signup-text {
    color: #64748b;
    font-size: 0.95rem;
    margin-right: 0.5rem;
}

.forgot-password-signup-link {
    background: none;
    border: none;
    color: var(--primary-color, #00b4ff);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.forgot-password-signup-link:hover {
    color: var(--secondary-color, #0174B1);
    text-decoration: underline;
}

/* ==============================================
   VALIDATION
   ============================================== */

.forgot-password-validation-summary {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 12px;
    padding: 1rem;
    color: #c33;
    font-weight: bold;
    margin-bottom: 1rem;
}

.forgot-password-validation-message {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ==============================================
   NOTICE (TEMPORARY)
   ============================================== */

.forgot-password-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.forgot-password-notice i {
    color: #3b82f6;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.forgot-password-notice p {
    margin: 0;
    color: #1e40af;
    font-size: 0.9rem;
    line-height: 1.5;
}

.forgot-password-notice strong {
    font-weight: 700;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 600px) {
    .forgot-password-shell {
        padding: 6.5rem 1rem 2rem 1rem;
    }

    .forgot-password-card {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }

    .forgot-password-title {
        font-size: 1.75rem;
    }

    .forgot-password-subtitle {
        font-size: 0.95rem;
    }

    .forgot-password-success-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
}

/* ==============================================
   DARK MODE
   ============================================== */

/* Page background */
body.dark-mode .forgot-password-shell {
    background-color: var(--bg-color, #121212);
}

/* Card */
body.dark-mode .forgot-password-card {
    background: rgba(30, 41, 59, 0.72);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

/* Text colors */
body.dark-mode .forgot-password-title {
    color: #4fc3f7;
}

body.dark-mode .forgot-password-subtitle,
body.dark-mode .forgot-password-signup-text,
body.dark-mode .forgot-password-loading-text,
body.dark-mode .forgot-password-success-text,
body.dark-mode .forgot-password-success-support {
    color: #94a3b8;
}

body.dark-mode .forgot-password-form-label {
    color: #b0bec5;
}

body.dark-mode .forgot-password-loading-title {
    color: #e2e8f0;
}

/* Form inputs */
body.dark-mode .forgot-password-form-input {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

body.dark-mode .forgot-password-form-input:focus {
    border-color: #4fc3f7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.15);
}

body.dark-mode .forgot-password-form-input::placeholder {
    color: #64748b;
}

/* Buttons */
body.dark-mode .forgot-password-submit-button {
    background: #4fc3f7;
    color: #0f172a;
}

body.dark-mode .forgot-password-submit-button:hover {
    background: #93c5fd;
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

body.dark-mode .forgot-password-back-button {
    background: rgba(15, 23, 42, 0.55);
    color: #b0bec5;
}

body.dark-mode .forgot-password-back-button:hover {
    background: rgba(15, 23, 42, 0.75);
}

/* Links */
body.dark-mode .forgot-password-signup-link {
    color: #4fc3f7;
}

body.dark-mode .forgot-password-signup-link:hover {
    color: #93c5fd;
}

body.dark-mode .forgot-password-support-link {
    color: #fbbf24;
}

body.dark-mode .forgot-password-support-link:hover {
    color: #fcd34d;
}

/* Success state */
body.dark-mode .forgot-password-success-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

body.dark-mode .forgot-password-success-title {
    color: #34d399;
}

/* Spinner */
body.dark-mode .forgot-password-spinner {
    border-color: rgba(79, 195, 247, 0.2);
    border-top-color: #4fc3f7;
}

/* Validation */
body.dark-mode .forgot-password-validation-summary {
    background: rgba(254, 226, 226, 0.15);
    border-color: rgba(252, 165, 165, 0.3);
    color: #fca5a5;
}

body.dark-mode .forgot-password-validation-message {
    color: #fca5a5;
}

/* Borders */
body.dark-mode .forgot-password-signup-prompt {
    border-top-color: rgba(255, 255, 255, 0.10);
}

/* Notice */
body.dark-mode .forgot-password-notice {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .forgot-password-notice i {
    color: #60a5fa;
}

body.dark-mode .forgot-password-notice p {
    color: #93c5fd;
}
