body.auth-ui {
    min-height: 100vh;
    margin: 0;
    background: #f3f1eb;
    color: #242424;
}

body.auth-ui,
body.auth-ui input,
body.auth-ui button {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* -------------------------------------------------
   Layout
-------------------------------------------------- */

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(460px, .95fr);
}

.auth-brand-mobile {
    display: none;
}


/* -------------------------------------------------
   Left visual
-------------------------------------------------- */

.auth-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 24% 20%,
            rgba(215, 174, 96, .24),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 88%,
            rgba(215, 174, 96, .10),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #202124 0%,
            #292a2d 48%,
            #17181a 100%
        );
    color: #fff;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, .08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .08) 1px,
            transparent 1px
        );
    background-size: 54px 54px;
    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, .55),
            transparent 90%
        );
}

.auth-visual::after {
    content: "";
    position: absolute;
    width: 470px;
    height: 470px;
    right: -190px;
    bottom: -190px;
    border-radius: 50%;
    border: 1px solid rgba(215, 174, 96, .18);
    box-shadow:
        0 0 0 65px rgba(215, 174, 96, .025),
        0 0 0 130px rgba(215, 174, 96, .018);
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, .16)
        );
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 42px 52px 36px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.auth-logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #d7ae60;
    color: #26231d;
    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, .18);
}

.auth-logo svg {
    width: 23px;
    height: 23px;
    stroke-width: 2.1;
}

.auth-brand > div:last-child {
    display: flex;
    flex-direction: column;
}

.auth-brand strong {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.025em;
}

.auth-brand span {
    margin-top: 2px;
    color: rgba(255, 255, 255, .46);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-message {
    width: min(600px, 100%);
    margin-top: auto;
    margin-bottom: auto;
    padding: 70px 0;
}

.auth-kicker {
    color: #d7ae60;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .17em;
}

.auth-message h1 {
    margin: 15px 0 0;
    max-width: 610px;
    font-size: clamp(43px, 5.3vw, 72px);
    line-height: .98;
    letter-spacing: -.055em;
}

.auth-message > p {
    max-width: 510px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .58);
    font-size: 15px;
    line-height: 1.7;
}

.auth-features {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 38px;
}

.auth-features > div {
    min-height: 105px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 15px;
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(8px);
}

.auth-features svg {
    width: 20px;
    height: 20px;
    color: #d7ae60;
}

.auth-features span {
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
}

.auth-features strong {
    margin-bottom: 2px;
    color: #fff;
    font-size: 12px;
}

.auth-visual-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, .36);
    font-size: 10px;
    font-weight: 750;
}

.auth-visual-footer > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5dd59d;
    box-shadow:
        0 0 0 4px
        rgba(93, 213, 157, .10);
}


/* -------------------------------------------------
   Login panel
-------------------------------------------------- */

.auth-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px;
    background:
        radial-gradient(
            circle at top right,
            rgba(215, 174, 96, .11),
            transparent 24%
        ),
        #f6f4ef;
}

.auth-panel-inner {
    width: min(430px, 100%);
}

.auth-form-header {
    margin-bottom: 32px;
}

.auth-form-header h2 {
    margin: 9px 0 0;
    color: #202124;
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.auth-form-header p {
    margin: 11px 0 0;
    color: #7a7872;
    font-size: 14px;
}


/* -------------------------------------------------
   Error
-------------------------------------------------- */

.auth-alert {
    display: flex;
    gap: 11px;
    margin-bottom: 20px;
    padding: 13px;
    border: 1px solid rgba(190, 76, 76, .18);
    border-radius: 13px;
    background: rgba(190, 76, 76, .07);
    color: #943d3d;
}

.auth-alert-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(190, 76, 76, .10);
}

.auth-alert-icon svg {
    width: 17px;
    height: 17px;
}

.auth-alert > div:last-child {
    display: flex;
    flex-direction: column;
}

.auth-alert strong {
    font-size: 12px;
}

.auth-alert span {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.4;
}


/* -------------------------------------------------
   Form
-------------------------------------------------- */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-field > label {
    color: #484742;
    font-size: 12px;
    font-weight: 800;
}

.auth-input {
    position: relative;
}

.auth-input > svg {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 17px;
    height: 17px;
    color: #a09d94;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input input {
    width: 100%;
    height: 54px;
    padding: 0 46px 0 45px;
    border: 1px solid #dedbd3;
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, .86);
    color: #242424;
    box-sizing: border-box;
    font-size: 14px;
    box-shadow:
        0 3px 10px
        rgba(30, 30, 30, .025);
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background 150ms ease;
}

.auth-input input::placeholder {
    color: #aaa79f;
}

.auth-input input:focus {
    border-color: rgba(181, 129, 44, .55);
    background: #fff;
    box-shadow:
        0 0 0 4px
        rgba(181, 129, 44, .09);
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #98958d;
    cursor: pointer;
    transform: translateY(-50%);
}

.auth-password-toggle:hover {
    background: #f1efe9;
    color: #5c5952;
}

.auth-password-toggle svg {
    width: 17px;
    height: 17px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #69675f;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.auth-remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-checkbox {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 1px solid #d4d0c7;
    border-radius: 6px;
    background: #fff;
    transition:
        background 150ms ease,
        border-color 150ms ease;
}

.auth-checkbox svg {
    width: 11px;
    height: 11px;
    color: #fff;
    opacity: 0;
}

.auth-remember input:checked + .auth-checkbox {
    border-color: #b5812c;
    background: #b5812c;
}

.auth-remember input:checked + .auth-checkbox svg {
    opacity: 1;
}

.auth-submit {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 3px;
    padding: 0 19px;
    border: 0;
    border-radius: 14px;
    background: #242528;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow:
        0 12px 28px
        rgba(27, 28, 30, .16);
    transition:
        transform 150ms ease,
        background 150ms ease,
        box-shadow 150ms ease;
}

.auth-submit:hover {
    background: #17181a;
    box-shadow:
        0 15px 32px
        rgba(27, 28, 30, .20);
}

.auth-submit:active {
    transform: scale(.985);
}

.auth-submit svg {
    width: 18px;
    height: 18px;
}


/* -------------------------------------------------
   Footer
-------------------------------------------------- */

.auth-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 29px;
    padding-top: 19px;
    border-top: 1px solid #dedbd3;
    color: #9b9890;
    font-size: 9px;
    font-weight: 700;
}

.auth-form-footer > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-form-footer svg {
    width: 13px;
    height: 13px;
}


/* -------------------------------------------------
   Responsive
-------------------------------------------------- */

@media (max-width: 1000px) {

    .auth-shell {
        grid-template-columns:
            minmax(0, .85fr)
            minmax(420px, 1fr);
    }

    .auth-visual-content {
        padding:
            35px
            34px
            30px;
    }

    .auth-message h1 {
        font-size: 48px;
    }

    .auth-features {
        grid-template-columns: 1fr;
    }

    .auth-features > div {
        min-height: 75px;
    }

}


@media (max-width: 760px) {

    body.auth-ui {
        background: #f6f4ef;
    }

    .auth-shell {
        display: block;
        min-height: 100vh;
    }

    .auth-visual {
        display: none;
    }

    .auth-brand-mobile {
        min-height: 72px;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 0 20px;
        border-bottom: 1px solid #e4e0d7;
        background: #242528;
        color: #fff;
    }

    .auth-brand-mobile .auth-logo {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .auth-brand-mobile .auth-logo svg {
        width: 19px;
        height: 19px;
    }

    .auth-brand-mobile > div:last-child {
        display: flex;
        flex-direction: column;
    }

    .auth-brand-mobile strong {
        font-size: 16px;
        font-weight: 900;
    }

    .auth-brand-mobile span {
        margin-top: 1px;
        color: rgba(255, 255, 255, .48);
        font-size: 10px;
    }

    .auth-panel {
        min-height:
            calc(
                100vh - 72px
            );
        align-items: flex-start;
        padding:
            48px
            20px
            35px;
    }

    .auth-panel-inner {
        width: 100%;
        max-width: 480px;
    }

    .auth-form-header {
        margin-bottom: 28px;
    }

    .auth-form-header h2 {
        font-size: 34px;
    }

}


@media (max-width: 400px) {

    .auth-panel {
        padding-top: 36px;
    }

    .auth-form-header h2 {
        font-size: 31px;
    }

    .auth-input input {
        height: 52px;
    }

    .auth-submit {
        min-height: 54px;
    }

    .auth-form-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

}