/* Extracted from forgot.php */

:root {
        --forgot-bg-a: #f3fbff;
        --forgot-bg-b: #ecf5ff;
        --forgot-text: #0f172a;
        --forgot-muted: #475569;
        --forgot-line: #c9d9ea;
        --forgot-panel: #ffffff;
        --forgot-accent-a: #0f172a;
        --forgot-accent-b: #1d4ed8;
        --forgot-chip: #e2edfb;
        --forgot-success-bg: #e9f8ee;
        --forgot-success-text: #0f5132;
        --forgot-success-line: #8ed0a7;
        --forgot-error-bg: #ffefef;
        --forgot-error-text: #8a1f2f;
        --forgot-error-line: #f3a8b5;
        --forgot-focus: #2f6bff;
        --forgot-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
    }

    * {
        box-sizing: border-box;
    }

    body.forgot-page {
        margin: 0;
        min-height: 100vh;
        color: var(--forgot-text);
        font-family: var(--app-font-body);
        background:
            radial-gradient(60vw 50vh at -10% -15%, rgba(59, 130, 246, 0.26), transparent 62%),
            radial-gradient(52vw 45vh at 105% -5%, rgba(2, 132, 199, 0.2), transparent 66%),
            linear-gradient(160deg, var(--forgot-bg-a) 0%, var(--forgot-bg-b) 100%);
    }

    .forgot-wrap {
        max-width: 980px;
        margin: 0 auto;
        padding: clamp(22px, 4vw, 44px) 14px 28px;
    }

    .forgot-brand-row {
        margin: 0 0 12px;
        display: flex;
        align-items: center;
    }

    .forgot-brand-link {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        border: 1px solid #bfd3ea;
        border-radius: 14px;
        background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
        padding: 8px 11px;
        text-decoration: none;
    }

    .forgot-brand-link:hover {
        text-decoration: none;
        filter: brightness(0.99);
    }

    .forgot-brand-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        border: 1px solid #bacce3;
        background: #ffffff;
        object-fit: cover;
    }

    .forgot-brand-wordmark {
        width: auto;
        height: 26px;
        object-fit: contain;
        display: block;
    }

    .forgot-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 16px;
        align-items: stretch;
    }

    .forgot-hero,
    .forgot-card {
        border: 1px solid var(--forgot-line);
        border-radius: 20px;
        background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.95));
        box-shadow: var(--forgot-shadow);
        backdrop-filter: blur(2px);
        opacity: 0;
        transform: translateY(12px);
        animation: forgot-reveal 0.5s ease forwards;
    }

    .forgot-hero {
        padding: clamp(20px, 3vw, 28px);
        animation-delay: 0.04s;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .forgot-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid #c7daf6;
        background: var(--forgot-chip);
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.09em;
        color: #18406f;
    }

    .forgot-title {
        margin: 14px 0 8px;
        font-family: var(--app-font-heading);
        font-size: clamp(1.75rem, 3.6vw, 2.55rem);
        line-height: 1.05;
        letter-spacing: -0.02em;
    }

    .forgot-subtitle {
        margin: 0;
        max-width: 34ch;
        color: var(--forgot-muted);
        font-size: 15px;
        line-height: 1.6;
    }

    .forgot-points {
        margin: 16px 0 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 9px;
    }

    .forgot-points li {
        display: flex;
        align-items: center;
        gap: 9px;
        color: var(--app-title-text, #1e293b);
        font-size: 13px;
        font-weight: 700;
    }

    .forgot-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: linear-gradient(145deg, var(--forgot-accent-b), #2563eb);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
        flex: 0 0 auto;
    }

    .forgot-card {
        padding: clamp(18px, 3vw, 24px);
        animation-delay: 0.12s;
    }

    .forgot-card h2 {
        margin: 0;
        font-family: var(--app-font-heading);
        font-size: clamp(1.25rem, 2.3vw, 1.55rem);
        letter-spacing: -0.01em;
    }

    .forgot-card p {
        margin: 8px 0 0;
        color: var(--forgot-muted);
        font-size: 14px;
        line-height: 1.6;
    }

    .forgot-status {
        margin: 14px 0 0;
        border: 1px solid;
        border-radius: 12px;
        padding: 11px 12px;
        font-size: 13px;
        line-height: 1.5;
    }

    .forgot-status strong {
        display: block;
        margin-bottom: 3px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .forgot-status.success {
        background: var(--forgot-success-bg);
        border-color: var(--forgot-success-line);
        color: var(--forgot-success-text);
    }

    .forgot-status.error {
        background: var(--forgot-error-bg);
        border-color: var(--forgot-error-line);
        color: var(--forgot-error-text);
    }

    .forgot-status.info {
        background: #eaf1ff;
        border-color: #b8caf0;
        color: #1e3a8a;
    }

    .forgot-form {
        margin-top: 15px;
        display: grid;
        gap: 12px;
    }

    .forgot-field-wrap {
        display: grid;
        gap: 6px;
    }

    .forgot-label {
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #334155;
    }

    .forgot-input {
        width: 100%;
        border: 1px solid #bbcee5;
        border-radius: 12px;
        padding: 12px 13px;
        font-size: 14px;
        font-weight: 700;
        color: #0f172a;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .forgot-input:focus {
        outline: none;
        border-color: var(--forgot-focus);
        box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.18);
        transform: translateY(-1px);
    }

    .forgot-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 2px;
    }

    .forgot-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        border: 1px solid transparent;
        padding: 10px 14px;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.01em;
        text-decoration: none;
        cursor: pointer;
        transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    }

    .forgot-btn.primary {
        background: linear-gradient(145deg, var(--forgot-accent-a) 0%, var(--forgot-accent-b) 100%);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(29, 78, 216, 0.28);
    }

    .forgot-btn.secondary {
        border-color: #c5d5e8;
        background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
        color: #0f172a;
    }

    .forgot-btn:hover {
        transform: translateY(-1px);
        filter: brightness(0.98);
        text-decoration: none;
    }

    .forgot-footnote {
        margin: 12px 0 0;
        color: #64748b;
        font-size: 12px;
        line-height: 1.5;
    }

    .forgot-picker-overlay {
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 10040;
        background: rgba(15, 23, 42, 0.52);
        --sr-dialog-backdrop: rgba(15, 23, 42, 0.52);
        padding: 14px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .forgot-picker-overlay.is-open {
        display: flex;
    }

    .forgot-picker-dialog {
        width: min(100%, 540px);
        max-height: calc(100vh - 28px);
        border: 1px solid #b7c9e5;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 28px 48px rgba(15, 23, 42, 0.3);
        padding: 16px;
        overflow: auto;
    }

    .forgot-picker-title {
        margin: 0;
        font-family: var(--app-font-heading);
        font-size: 1.2rem;
    }

    .forgot-picker-copy {
        margin: 8px 0 0;
        color: #475569;
        font-size: 14px;
        line-height: 1.55;
    }

    .forgot-picker-list {
        margin: 12px 0 0;
        display: grid;
        gap: 8px;
    }

    .forgot-picker-option {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 8px;
        align-items: flex-start;
        border: 1px solid #c8d7ee;
        border-radius: 12px;
        background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
        padding: 9px 10px;
        cursor: pointer;
    }

    .forgot-picker-option input {
        margin-top: 2px;
    }

    .forgot-picker-username {
        font-size: 14px;
        font-weight: 800;
        color: #0f172a;
    }

    .forgot-picker-name {
        margin-top: 2px;
        font-size: 12px;
        color: #64748b;
    }

    .forgot-picker-actions {
        margin-top: 12px;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }

    @keyframes forgot-reveal {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 860px) {
        .forgot-layout {
            grid-template-columns: 1fr;
        }

        .forgot-subtitle {
            max-width: none;
        }
    }

    @media (max-width: 560px) {
        .forgot-wrap {
            padding: 16px 10px 18px;
        }

        .forgot-brand-link {
            border-radius: 12px;
            padding: 7px 9px;
            gap: 8px;
        }

        .forgot-brand-icon {
            width: 30px;
            height: 30px;
        }

        .forgot-brand-wordmark {
            height: 23px;
        }

        .forgot-hero,
        .forgot-card {
            border-radius: 16px;
            padding: 14px;
        }

        .forgot-actions {
            flex-direction: column;
        }

        .forgot-btn {
            width: 100%;
        }
    }
