/* Forgot password — centered card (uses landing-public.css for circular logo) */

.forgot-password-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #eef2f6;
    background-image: linear-gradient(180deg, #f1f5f9 0%, #e8edf3 100%);
    color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 32px;
    box-sizing: border-box;
}

.forgot-password-page {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.forgot-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 28px;
}

.forgot-brand .sw-logo-mark-frame {
    width: 52px;
    height: 52px;
}

.forgot-brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1d4ed8;
}

.forgot-card {
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 32px 28px;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 22px 48px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.forgot-card-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.forgot-card-lead {
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.forgot-form .forgot-form-group {
    margin-bottom: 22px;
}

.forgot-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

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

.forgot-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
    pointer-events: none;
}

.forgot-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 44px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background-color: #f1f5f9;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.forgot-input::placeholder {
    color: #94a3b8;
}

.forgot-input:focus {
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.forgot-submit-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.forgot-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.4);
}

.forgot-submit-btn:active {
    transform: translateY(0);
}

.forgot-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 26px 0 20px;
}

.forgot-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.forgot-back-link:hover {
    text-decoration: underline;
}

.auth-success {
    background: #ecfdf5;
    color: #065f46;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #a7f3d0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.auth-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.auth-success-hide {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.forgot-footer {
    margin-top: 36px;
    text-align: center;
    max-width: 420px;
}

.forgot-compliance {
    margin: 0 0 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}

.forgot-compliance-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.forgot-compliance-icons svg {
    display: block;
}

.forgot-legal {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
    color: #94a3b8;
}

.forgot-legal a {
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
}

.forgot-legal a:hover {
    color: #2563eb;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .forgot-submit-btn {
        transition: none;
    }

    .forgot-submit-btn:hover {
        transform: none;
    }

    .auth-success-hide {
        transition: none;
    }
}
