:root {
    --navy: #0b2749;
    --navy-dark: #071b32;
    --blue: #1267c4;
    --red: #c1121f;
    --red-dark: #8f0d17;

    --white: #ffffff;
    --text: #172033;
    --muted: #64748b;

    --surface: #ffffff;
    --surface-alt: #f3f5f8;

    --border: #e2e8f0;
    --border-dark: #cbd5e1;

    --danger: #b42318;
    --danger-bg: #fdecea;

    --shadow:
        0 8px 24px rgba(12, 21, 33, 0.08);

    --max-width: 1240px;
}


/*
 * ---------------------------------------------------------
 * BASE
 * ---------------------------------------------------------
 */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    background: var(--surface-alt);
}

body {
    min-height: 100vh;

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

    color: var(--text);
    background: var(--surface-alt);
}

a {
    color: var(--navy);
    text-decoration: none;
}


/*
 * ---------------------------------------------------------
 * HEADER
 * ---------------------------------------------------------
 */

.lq-auth-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: var(--navy);
    color: var(--white);

    box-shadow:
        0 3px 15px rgba(7, 27, 50, 0.16);
}

.lq-auth-header-inner {
    width:
        min(
            var(--max-width),
            calc(100% - 32px)
        );

    min-height: 74px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.lq-auth-brand {
    display: flex;
    align-items: center;

    gap: 11px;

    color: var(--white);
}

.lq-auth-brand:hover {
    color: var(--white);
}

.lq-auth-logo {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    display: block;

    object-fit: contain;

    border-radius: 50%;

    background: var(--white);

    border:
        2px solid
        rgba(255, 255, 255, 0.92);

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.22);
}

.lq-auth-brand-copy {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.lq-auth-brand-title {
    font-size: 16px;
    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -0.01em;
}

.lq-auth-brand-subtitle {
    margin-top: 3px;

    font-size: 11px;
    font-weight: 600;

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

    text-transform: uppercase;

    letter-spacing: 0.03em;
}

.lq-auth-header-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 17px;

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

    border-radius: 10px;

    color: var(--white);

    font-size: 13px;
    font-weight: 700;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.lq-auth-header-link:hover {
    color: var(--white);

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

    border-color:
        rgba(
            255,
            255,
            255,
            0.60
        );
}

.lq-auth-accent {
    height: 3px;

    background: var(--red);
}


/*
 * ---------------------------------------------------------
 * PAGE
 * ---------------------------------------------------------
 */

.lq-auth-main {
    width:
        min(
            100% - 32px,
            520px
        );

    margin: 0 auto;

    padding:
        58px 0
        70px;
}


/*
 * ---------------------------------------------------------
 * TITLE
 * ---------------------------------------------------------
 */

.lq-auth-heading {
    margin-bottom: 22px;

    text-align: center;
}

.lq-auth-eyebrow {
    margin-bottom: 8px;

    color: var(--red);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.07em;
}

.lq-auth-heading h1 {
    margin: 0;

    color: var(--navy);

    font-size:
        clamp(
            28px,
            5vw,
            36px
        );

    line-height: 1.12;

    letter-spacing: -0.025em;
}

.lq-auth-heading p {
    margin: 10px auto 0;

    max-width: 440px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.55;
}


/*
 * ---------------------------------------------------------
 * LOGIN CARD
 * ---------------------------------------------------------
 */

.lq-auth-card {
    overflow: hidden;

    background: var(--surface);

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

    border-radius: 16px;

    box-shadow: var(--shadow);
}

.lq-auth-card-top {
    height: 4px;

    background: var(--navy);
}

.lq-auth-card-body {
    padding: 30px 32px 32px;
}

.lq-auth-card h2 {
    margin: 0 0 6px;

    color: var(--navy);

    font-size: 21px;

    line-height: 1.2;
}

.lq-auth-card-intro {
    margin: 0 0 24px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.5;
}


/*
 * ---------------------------------------------------------
 * ERROR
 * ---------------------------------------------------------
 */

.lq-auth-error {
    margin-bottom: 20px;

    padding: 13px 15px;

    border:
        1px solid
        #f0c3bf;

    border-radius: 10px;

    color: var(--danger);

    background: var(--danger-bg);

    font-size: 13px;
    font-weight: 600;

    line-height: 1.45;
}


/*
 * ---------------------------------------------------------
 * FORM
 * ---------------------------------------------------------
 */

.lq-auth-field {
    margin-bottom: 19px;
}

.lq-auth-field:last-of-type {
    margin-bottom: 0;
}

.lq-auth-field label {
    display: block;

    margin-bottom: 7px;

    color: var(--navy);

    font-size: 13px;
    font-weight: 700;
}

.lq-auth-field input {
    width: 100%;
    min-height: 46px;

    padding: 11px 12px;

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

    border-radius: 10px;

    background: var(--white);

    color: var(--text);

    font: inherit;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.lq-auth-field input:hover {
    border-color: #aebdce;
}

.lq-auth-field input:focus {
    outline: none;

    border-color: var(--blue);

    box-shadow:
        0 0 0 3px
        rgba(
            18,
            103,
            196,
            0.12
        );
}


/*
 * ---------------------------------------------------------
 * BUTTON
 * ---------------------------------------------------------
 */

.lq-auth-actions {
    margin-top: 25px;
}

.lq-auth-submit {
    width: 100%;
    min-height: 48px;

    padding: 0 22px;

    border: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            #123e70 0%,
            var(--navy) 100%
        );

    color: var(--white);

    font: inherit;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 5px 14px
        rgba(
            11,
            39,
            73,
            0.20
        );

    transition:
        transform 0.08s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.lq-auth-submit:hover {
    background:
        linear-gradient(
            180deg,
            #0f365f 0%,
            var(--navy-dark) 100%
        );

    box-shadow:
        0 6px 16px
        rgba(
            11,
            39,
            73,
            0.25
        );
}

.lq-auth-submit:active {
    transform: translateY(1px);
}


/*
 * ---------------------------------------------------------
 * LOWER CARD AREA
 * ---------------------------------------------------------
 */

.lq-auth-card-footer {
    padding: 16px 32px;

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

    background: #fafbfd;

    text-align: center;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.5;
}

.lq-auth-card-footer a {
    color: var(--navy);

    font-weight: 700;
}

.lq-auth-card-footer a:hover {
    text-decoration: underline;
}


/*
 * ---------------------------------------------------------
 * PAGE FOOTER
 * ---------------------------------------------------------
 */

.lq-auth-page-footer {
    margin-top: 22px;

    text-align: center;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.5;
}


/*
 * ---------------------------------------------------------
 * MOBILE
 * ---------------------------------------------------------
 */

@media (max-width: 600px) {

    .lq-auth-header-inner {
        width: calc(100% - 20px);

        min-height: 68px;
    }

    .lq-auth-logo {
        width: 41px;
        height: 41px;

        flex-basis: 41px;
    }

    .lq-auth-brand-title {
        font-size: 15px;
    }

    .lq-auth-brand-subtitle {
        display: none;
    }

    .lq-auth-header-link {
        min-height: 37px;

        padding: 0 12px;

        font-size: 12px;
    }

    .lq-auth-main {
        width: calc(100% - 20px);

        padding:
            36px 0
            50px;
    }

    .lq-auth-card-body {
        padding:
            24px 20px
            25px;
    }

    .lq-auth-card-footer {
        padding:
            15px 20px;
    }
}