/* =========================================================
   KNOWURLOCAL — PASSWORD RECOVERY
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {

    --color-primary: #315fbd;

    --color-primary-dark: #274f9f;

    --color-primary-soft: #eef4ff;

    --color-accent: #6b5fd3;

    --color-text: #172033;

    --color-text-secondary: #61708a;

    --color-text-muted: #8a96a8;

    --color-border: #dfe5ee;

    --color-border-soft: #e8edf4;

    --color-surface: #ffffff;

    --color-surface-soft: #f7f9fc;

    --color-page: #f2f5f9;

    --color-danger: #c84d61;


    --auth-width: 980px;

    --auth-height: 620px;

    --panel-width: 52%;


    --radius-container: 24px;

    --radius-input: 10px;

    --radius-button: 10px;


    --transition-fast: 160ms ease;

}


/* =========================================================
   2. RESET
   ========================================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    min-height: 100%;

}


body {

    min-height: 100vh;

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--color-text);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(
                49,
                95,
                189,
                0.07
            ),
            transparent 32%
        ),
        var(--color-page);

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 24px;

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;

}


/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */

.sr-only {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(
        0,
        0,
        0,
        0
    );

    white-space: nowrap;

    border: 0;

}


/* =========================================================
   4. RECOVERY CONTAINER
   ========================================================= */

.recovery-container {

    position: relative;

    width: min(
        var(--auth-width),
        100%
    );

    height: var(--auth-height);

    background: var(--color-surface);

    border: 1px solid rgba(
        223,
        229,
        238,
        0.9
    );

    border-radius: var(--radius-container);

    overflow: hidden;

    box-shadow:
        0 24px 70px rgba(
            23,
            32,
            51,
            0.10
        ),
        0 4px 16px rgba(
            23,
            32,
            51,
            0.04
        );

}


/* =========================================================
   5. RECOVERY FORM SIDE
   ========================================================= */

.recovery-form-side {

    position: absolute;

    top: 0;

    right: 0;

    width: 50%;

    height: 100%;

    padding:
        48px
        64px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--color-surface);

}


/* =========================================================
   6. FORM
   ========================================================= */

.form {

    width: 100%;

    max-width: 350px;

}


/* =========================================================
   7. FORM HEADING
   ========================================================= */

.form-heading {

    margin-bottom: 28px;

}


.form-eyebrow {

    display: block;

    margin-bottom: 7px;

    color: var(--color-primary);

    font-size: 0.66rem;

    font-weight: 700;

    letter-spacing: 0.11em;

}


.form h2 {

    margin-bottom: 7px;

    color: var(--color-text);

    font-size: 1.65rem;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.025em;

}


.subtitle {

    color: var(--color-text-secondary);

    font-size: 0.82rem;

    line-height: 1.5;

}


/* =========================================================
   8. INPUT
   ========================================================= */

.input-group {

    position: relative;

    margin-bottom: 14px;

}


.input-group > i {

    position: absolute;

    left: 14px;

    top: 50%;

    z-index: 2;

    transform: translateY(-50%);

    color: var(--color-text-muted);

    font-size: 17px;

    line-height: 1;

    pointer-events: none;

    transition:
        color var(--transition-fast);

}


.input-group input {

    width: 100%;

    height: 46px;

    padding:
        0
        44px;

    border: 1px solid var(--color-border);

    border-radius: var(--radius-input);

    outline: none;

    background: var(--color-surface-soft);

    color: var(--color-text);

    font-family: inherit;

    font-size: 0.86rem;

    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);

}


.input-group input::placeholder {

    color: #9aa5b5;

}


.input-group input:hover {

    border-color: #cbd4e1;

}


.input-group input:focus {

    border-color: var(--color-primary);

    background: var(--color-surface);

    box-shadow:
        0 0 0 3px rgba(
            49,
            95,
            189,
            0.10
        );

}


.input-group:focus-within > i {

    color: var(--color-primary);

}


/* =========================================================
   9. ERROR
   ========================================================= */

.form-success {

    display: flex;

    align-items: flex-start;

    gap: 7px;

    margin: -8px 0 14px;

    color: #2f7d5b;

    font-size: 0.74rem;

    line-height: 1.45;

}

.form-success i {

    flex-shrink: 0;

    margin-top: 1px;

    font-size: 15px;

}

.form-error {

    margin:
        -4px
        0
        14px;

    color: var(--color-danger);

    font-size: 0.75rem;

    line-height: 1.5;

}


/* =========================================================
   10. PRIMARY BUTTON
   ========================================================= */

.btn {

    width: 100%;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border: 1px solid transparent;

    border-radius: var(--radius-button);

    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            #416fca
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 0.84rem;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 5px 12px rgba(
            49,
            95,
            189,
            0.18
        );

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        filter var(--transition-fast);

}


.btn i {

    font-size: 17px;

    transition:
        transform var(--transition-fast);

}


.btn:hover {

    filter: brightness(1.04);

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(
            49,
            95,
            189,
            0.22
        );

}


.btn:hover i {

    transform: translateX(3px);

}


.btn:active {

    transform: translateY(0);

    box-shadow:
        0 3px 8px rgba(
            49,
            95,
            189,
            0.16
        );

}


.btn:focus-visible {

    outline: 2px solid #91afe8;

    outline-offset: 3px;

}


/* =========================================================
   11. BACK LINK
   ========================================================= */

.back-link {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 19px;

    color: var(--color-text-secondary);

    font-size: 0.76rem;

    font-weight: 500;

    text-decoration: none;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);

}


.back-link i {

    font-size: 16px;

}


.back-link:hover {

    color: var(--color-primary);

    transform: translateX(-2px);

}


.back-link:focus-visible {

    outline: 2px solid #91afe8;

    outline-offset: 3px;

    border-radius: 2px;

}


/* =========================================================
   12. BRAND PANEL
   ========================================================= */

.recovery-panel {

    position: absolute;

    top: 0;

    left: 0;

    width: var(--panel-width);

    height: 100%;

    z-index: 2;

    display: flex;

    align-items: center;

    overflow: hidden;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(
                255,
                255,
                255,
                0.10
            ),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #274f9f,
            #315fbd 58%,
            #426fc8
        );

    clip-path:
        ellipse(
            88%
            105%
            at
            0%
            50%
        );

    box-shadow:
        12px 0 40px rgba(
            23,
            32,
            51,
            0.10
        );

}


/* =========================================================
   13. PANEL CONTENT
   ========================================================= */

.panel-content {

    width: 100%;

    height: 100%;

    padding:
        0
        72px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-start;

}


/* =========================================================
   14. BRAND MARK
   ========================================================= */

.brand-mark {

    width: 38px;

    height: 38px;

    margin-bottom: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(
        255,
        255,
        255,
        0.20
    );

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            0.10
        );

    color: #ffffff;

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 0.04em;

}


/* =========================================================
   15. PANEL TEXT
   ========================================================= */

.panel-eyebrow {

    margin-bottom: 7px;

    color: rgba(
        255,
        255,
        255,
        0.70
    );

    font-size: 0.65rem;

    font-weight: 700;

    letter-spacing: 0.12em;

}


.panel-content h1 {

    max-width: 300px;

    margin-bottom: 12px;

    font-size: 1.9rem;

    line-height: 1.12;

    font-weight: 700;

    letter-spacing: -0.03em;

}


.panel-content h1 span {

    display: block;

    color: rgba(
        255,
        255,
        255,
        0.72
    );

}


.panel-content p {

    max-width: 285px;

    margin-bottom: 28px;

    color: rgba(
        255,
        255,
        255,
        0.76
    );

    font-size: 0.81rem;

    line-height: 1.65;

}


/* =========================================================
   16. FEATURES
   ========================================================= */

.features {

    display: flex;

    flex-direction: column;

    gap: 10px;

    list-style: none;

}


.features li {

    display: flex;

    align-items: center;

    gap: 10px;

    color: rgba(
        255,
        255,
        255,
        0.92
    );

    font-size: 0.78rem;

    font-weight: 500;

}


.feature-icon {

    width: 30px;

    height: 30px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(
        255,
        255,
        255,
        0.16
    );

    border-radius: 8px;

    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

}


.feature-icon i {

    font-size: 16px;

    color: rgba(
        255,
        255,
        255,
        0.92
    );

}


/* =========================================================
   17. TABLET
   ========================================================= */

@media (max-width: 850px) {

    body {

        min-height: 100vh;

        align-items: flex-start;

        padding: 0;

    }


    .recovery-container {

        width: 100%;

        min-height: 100vh;

        height: auto;

        border: 0;

        border-radius: 0;

        box-shadow: none;

        overflow: visible;

        display: flex;

        flex-direction: column;

    }


    .recovery-panel {

        position: relative;

        top: auto;

        left: auto;

        width: 100%;

        height: 215px;

        flex-shrink: 0;

        align-items: center;

        justify-content: center;

        clip-path:
            ellipse(
                125%
                100%
                at
                50%
                0%
            );

        box-shadow: none;

    }


    .panel-content {

        height: 100%;

        padding:
            0
            24px;

        align-items: center;

        justify-content: center;

        text-align: center;

    }


    .panel-content h1 {

        font-size: 1.55rem;

    }


    .panel-content p {

        margin-bottom: 20px;

        font-size: 0.76rem;

    }


    .features {

        flex-direction: row;

        gap: 8px;

    }


    .features li {

        flex-direction: column;

        gap: 5px;

        font-size: 0.67rem;

    }


    .recovery-form-side {

        position: relative;

        top: auto;

        right: auto;

        width: 100%;

        min-height:
            calc(
                100vh - 215px
            );

        height: auto;

        padding:
            36px
            24px
            48px;

    }


    .form {

        max-width: 430px;

    }

}


/* =========================================================
   18. MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .recovery-panel {

        height: 225px;

    }


    .recovery-form-side {

        min-height:
            calc(
                100vh - 225px
            );

        padding:
            30px
            18px
            40px;

    }


    .panel-content {

        padding:
            20px
            18px
            28px;

        justify-content: flex-start;

    }


    .brand-mark {

        width: 32px;

        height: 32px;

        margin-bottom: 8px;

        border-radius: 8px;

        font-size: 0.58rem;

    }


    .panel-eyebrow {

        margin-bottom: 4px;

        font-size: 0.58rem;

    }


    .panel-content h1 {

        max-width: 250px;

        margin-bottom: 7px;

        font-size: 1.35rem;

        line-height: 1.08;

    }


    .panel-content p {

        max-width: 270px;

        margin-bottom: 12px;

        font-size: 0.68rem;

        line-height: 1.45;

    }


    .features {

        flex-direction: row;

        gap: 10px;

    }


    .features li {

        min-width: 62px;

        flex-direction: column;

        gap: 4px;

        font-size: 0.62rem;

    }


    .feature-icon {

        width: 27px;

        height: 27px;

        border-radius: 7px;

    }


    .feature-icon i {

        font-size: 14px;

    }


    .form h2 {

        font-size: 1.4rem;

    }


    .input-group input {

        height: 48px;

    }


    .btn {

        height: 48px;

    }

}


/* =========================================================
   19. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

    }

}