.auth-page,
body:has(.auth-screen) {
    background: #fafafa;
}

.auth-page > .site-navbar,
.auth-page > .site-footer,
body:has(.auth-screen) > .site-navbar,
body:has(.auth-screen) > .site-footer {
    display: none;
}

.auth-screen {
    display: grid;
    min-height: 100vh;
    padding: 2rem 1rem;
    place-items: center;
}

.auth-card {
    background: #fff;
    box-sizing: border-box;
    border: 1px solid #dedede;
    border-radius: 0;
    box-shadow: none;
    max-width: 42rem;
    padding: 3.5rem 3.75rem 2.75rem;
    text-align: center;
    width: 100%;
}

.auth-logo {
    border-radius: 0;
    display: block;
    height: 7.5rem;
    margin: 0 auto 1.25rem;
    object-fit: cover;
    width: 7.5rem;
}

.auth-card h1 {
    color: #09090b;
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
    margin: 0;
}

.auth-description {
    color: #52525b;
    font-size: 1.05rem;
    line-height: 1.45;
    margin: 1rem auto 0;
    max-width: 30rem;
}

.auth-form {
    margin-top: 2rem;
}

.auth-field {
    position: relative;
    width: 100%;
}

.auth-input {
    appearance: none;
    border: 1px solid #a1a1aa;
    border-radius: 0;
    box-sizing: border-box;
    box-shadow: none;
    color: #18181b;
    display: block;
    font-size: 1.25rem;
    height: 4.35rem;
    min-width: 0;
    padding: 0 4rem 0 1.25rem;
    width: 100%;
}

.auth-input::placeholder {
    color: #71717a;
    opacity: 1;
}

.auth-input:focus {
    border-color: #18181b;
    box-shadow: none;
}

.auth-code-input {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.auth-field__icon {
    color: #09090b;
    height: 1.8rem;
    pointer-events: none;
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: none;
    width: 1.8rem;
    z-index: 1;
}

.auth-error {
    color: #b91c1c;
    font-size: 0.9rem;
    margin: 0.65rem 0 0;
    text-align: left;
}

.auth-submit {
    align-items: center;
    background: #000;
    border: 0;
    border-radius: 0;
    color: #fff;
    display: flex;
    height: 4.4rem;
    justify-content: center;
    margin: 1.5rem auto 0;
    transition: background-color 120ms ease, transform 120ms ease;
    width: 4.4rem;
}

.auth-submit:hover {
    background: #27272a;
    transform: none;
}

.auth-submit:focus-visible {
    outline: 3px solid rgb(24 24 27 / 28%);
    outline-offset: 3px;
}

.auth-submit svg {
    height: 2.15rem;
    width: 2.15rem;
}

@media (max-width: 36rem) {
    .auth-screen {
        padding: 0;
    }

    .auth-card {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
        padding: 3rem 1.25rem;
    }

    .auth-logo {
        height: 6rem;
        width: 6rem;
    }

    .auth-input {
        font-size: 1.05rem;
        height: 4rem;
    }
}
