/*
 * Forgot Password page — scoped, page-specific styles.
 * Only the white form column is styled here; the blue brand column
 * continues to use the shared .auth-brand-col rules in app.css untouched.
 * Server-side validation lives in App\Controllers\Auth::processForgotPassword();
 * this file is presentation only.
 */

.fp-card {
    max-width: 480px;
    padding: 40px 42px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fp-header {
    margin: 0 0 22px;
}

.fp-header h1 {
    font-size: 1.85rem;
    margin-bottom: 8px;
}

.fp-header p {
    font-size: 0.97rem;
    max-width: 38ch;
}

.fp-field {
    margin-bottom: 8px;
}

.fp-input-group {
    position: relative;
}

.fp-input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a9bb3;
    font-size: 0.98rem;
    pointer-events: none;
}

.fp-input-group input {
    padding-left: 40px;
}

.fp-field-error {
    display: block;
    min-height: 18px;
    margin: 6px 0 10px;
    font-size: 0.84rem;
    color: #dc2626;
}

.fp-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    background: #22c55e;
    border-color: #22c55e;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background 0.15s ease;
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.25);
}

.fp-submit-btn:hover:not(:disabled) {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.32);
}

.fp-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.fp-btn-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fp-spin 0.7s linear infinite;
}

.fp-submit-btn.is-loading .fp-btn-spinner {
    display: inline-block;
}

@keyframes fp-spin {
    to {
        transform: rotate(360deg);
    }
}

.fp-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #eef1f6;
    text-align: center;
}

@media (max-width: 860px) {
    .fp-card {
        padding: 32px 26px 28px;
    }
}
