:root {
    color-scheme: dark;

    --bg: #111210;
    --card: #181916;
    --border: #34362f;
    --border-soft: #292b26;
    --text: #eef0e8;
    --muted: #92968a;
    --accent: #deebc0;
    --accent-text: #17200f;
    --danger: #e28d8d;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    background:
        radial-gradient(
            circle at top,
            #1b1d18 0,
            #111210 42%
        );

    color: var(--text);

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

button,
input {
    font: inherit;
}

.auth-shell {
    min-height: 100dvh;

    display: grid;
    place-items: center;

    padding: 28px 18px;
}

.auth-card {
    width: min(
        100%,
        420px
    );

    padding: 30px;

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

    border-radius: 22px;

    background:
        rgba(
            24,
            25,
            22,
            0.96
        );

    box-shadow:
        0 28px 80px
        rgba(0,0,0,.35);
}

.auth-logo {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

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

    border-radius: 13px;

    font-size: 21px;
}

h1 {
    margin:
        0
        0
        7px;

    font-size: 25px;
}

.auth-subtitle {
    margin:
        0
        0
        25px;

    color:
        var(--muted);

    font-size: 14px;
}

.oauth-buttons {
    display: grid;
    gap: 9px;
}

.oauth-button {
    height: 46px;

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

    gap: 10px;

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

    border-radius: 12px;

    background:
        #20211d;

    color:
        var(--text);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.oauth-button:hover {
    background:
        #252721;
}

.oauth-icon {
    width: 23px;
    height: 23px;

    display: grid;
    place-items: center;

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

    border-radius: 7px;

    font-size: 12px;
}

.separator {
    position: relative;

    margin:
        22px
        0;

    text-align: center;

    color:
        var(--muted);

    font-size: 11px;
}

.separator::before {
    content: "";

    position: absolute;
    inset:
        50%
        0
        auto;

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

.separator span {
    position: relative;

    padding:
        0
        10px;

    background:
        var(--card);
}

.tabs {
    display: flex;

    gap: 4px;

    margin-bottom: 17px;

    padding: 4px;

    border-radius: 10px;

    background:
        #20211d;
}

.tab {
    flex: 1;

    height: 35px;

    border: 0;
    border-radius: 7px;

    cursor: pointer;

    background:
        transparent;

    color:
        var(--muted);

    font-size: 12px;
    font-weight: 650;
}

.tab.active {
    background:
        #2a2c26;

    color:
        var(--text);
}

.auth-form {
    display: grid;

    gap: 14px;
}

.auth-form label {
    display: grid;

    gap: 6px;

    color:
        #c8cbc0;

    font-size: 12px;
}

.auth-form input {
    width: 100%;
    height: 44px;

    padding:
        0
        12px;

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

    border-radius: 10px;

    outline: 0;

    background:
        #111210;

    color:
        var(--text);

    font-size: 14px;
}

.auth-form input:focus {
    border-color:
        rgba(
            222,
            235,
            192,
            .48
        );

    box-shadow:
        0 0 0 2px
        rgba(
            222,
            235,
            192,
            .07
        );
}

.primary-button {
    height: 44px;

    margin-top: 3px;

    border: 0;
    border-radius: 11px;

    cursor: pointer;

    background:
        var(--accent);

    color:
        var(--accent-text);

    font-weight: 750;
}

.primary-button:hover {
    background:
        #e8f3d1;
}

.text-button {
    border: 0;

    cursor: pointer;

    background:
        transparent;

    color:
        var(--muted);

    font-size: 12px;
}

.text-button:hover {
    color:
        var(--text);
}

.form-copy {
    color:
        var(--muted);

    font-size: 13px;

    line-height: 1.5;
}

.auth-error,
.auth-notice {
    margin-top: 16px;

    padding: 10px 12px;

    border-radius: 9px;

    font-size: 12px;

    line-height: 1.4;
}

.auth-error {
    border:
        1px solid
        rgba(226,141,141,.28);

    background:
        rgba(226,141,141,.08);

    color:
        var(--danger);
}

.auth-notice {
    border:
        1px solid
        rgba(222,235,192,.2);

    background:
        rgba(222,235,192,.06);

    color:
        #dce8c2;
}

.hidden {
    display: none !important;
}

@media (max-width: 520px) {

    .auth-shell {
        padding:
            0;
    }

    .auth-card {
        min-height:
            100dvh;

        width:
            100%;

        display:
            flex;

        flex-direction:
            column;

        justify-content:
            center;

        padding:
            28px
            20px;

        border:
            0;

        border-radius:
            0;
    }
}
