body.auth-screen {
    background: #ffffff;
}

body.auth-screen #app > footer {
    display: none;
}

body.auth-screen #app > header {
    border-color: transparent;
    box-shadow: none;
}

.authPage {
    --auth-ink: #111212;
    --auth-muted: #65625c;
    --auth-line: rgba(17, 18, 18, .11);
    --auth-line-strong: rgba(17, 18, 18, .18);
    --auth-paper: #ffffff;
    --auth-surface: #ffffff;
    --auth-gold: #a98338;
    --auth-teal: #247f98;
    background: #ffffff;
    color: var(--auth-ink);
    display: flex;
    font-family: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    justify-content: center;
    min-height: calc(100svh - 70px);
    padding: clamp(22px, 4vw, 58px) 18px clamp(42px, 5vw, 72px);
}

.authPage *,
.authPage *::before,
.authPage *::after {
    box-sizing: border-box;
}

.authShell {
    display: block;
    margin: 0 auto;
    max-width: 464px;
    width: 100%;
}

.authCardKicker,
.authChoiceLabel {
    color: var(--auth-gold);
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.authCard {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(17, 18, 18, .1);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(17, 18, 18, .11), 0 1px 0 rgba(255, 255, 255, .9) inset;
    padding: clamp(26px, 4vw, 42px);
    position: relative;
    width: 100%;
}

.authCard::before {
    background: linear-gradient(90deg, var(--auth-gold), var(--auth-teal));
    content: "";
    height: 2px;
    left: 22px;
    position: absolute;
    right: 22px;
    top: -1px;
}

.authCardHeader {
    margin-bottom: 22px;
}

.authCard h2 {
    color: var(--auth-ink);
    font-size: 40px;
    font-weight: 560;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 12px 0 0;
}

.authCardHeader p {
    color: var(--auth-muted);
    font-size: 15px;
    line-height: 1.55;
    margin: 12px 0 0;
}

.authProviderBlock {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.authChoiceLabel {
    color: var(--auth-teal);
}

.authGoogleButton,
.authEmailButton {
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 15px;
    font-weight: 780;
    gap: 12px;
    justify-content: center;
    min-height: 58px;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
    width: 100%;
}

.authGoogleButton {
    background: var(--auth-ink);
    border: 1px solid var(--auth-ink);
    box-shadow: 0 16px 35px rgba(17, 18, 18, .18);
    color: #ffffff;
    position: relative;
}

.authGoogleButton:hover {
    background: #232424;
    border-color: #232424;
    box-shadow: 0 20px 44px rgba(17, 18, 18, .22);
    color: #ffffff;
    transform: translateY(-1px);
}

.authGoogleButton:focus-visible,
.authEmailButton:focus-visible,
.authSwitch a:focus-visible,
.authFormMeta a:focus-visible {
    outline: 3px solid rgba(36, 127, 152, .26);
    outline-offset: 3px;
}

.authGoogleIcon {
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.authGoogleIcon img {
    display: block;
    height: 18px;
    width: 18px;
}

.authDivider {
    align-items: center;
    color: rgba(17, 18, 18, .48);
    display: grid;
    font-size: 11px;
    font-weight: 800;
    gap: 14px;
    grid-template-columns: 1fr auto 1fr;
    letter-spacing: 0;
    margin: 22px 0;
    text-transform: uppercase;
}

.authDivider::before,
.authDivider::after {
    background: var(--auth-line);
    content: "";
    height: 1px;
}

.authForm {
    display: grid;
    gap: 16px;
}

.authCard--signup .authForm {
    gap: 14px;
}

.authField {
    display: grid;
    gap: 8px;
}

.authField label,
.authRemember label {
    color: rgba(17, 18, 18, .78);
    font-size: 13px;
    font-weight: 780;
    line-height: 1.2;
}

.authInput {
    appearance: none;
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    color: var(--auth-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 520;
    height: 52px;
    line-height: 1.2;
    padding: 0 16px;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
    width: 100%;
}

.authInput::placeholder {
    color: rgba(17, 18, 18, .35);
    font-weight: 500;
}

.authInput:hover {
    border-color: rgba(17, 18, 18, .22);
}

.authInput:focus {
    background: #ffffff;
    border-color: rgba(36, 127, 152, .66);
    box-shadow: 0 0 0 4px rgba(36, 127, 152, .12);
    outline: 0;
}

.authInput.is-invalid {
    border-color: #b84a4a;
    box-shadow: 0 0 0 4px rgba(184, 74, 74, .09);
}

.authFormMeta {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: -2px;
}

.authRemember {
    align-items: center;
    display: inline-flex;
    gap: 9px;
}

.authCheckbox {
    accent-color: var(--auth-ink);
    height: 16px;
    width: 16px;
}

.authFormMeta a,
.authSwitch a {
    color: var(--auth-ink);
    font-size: 13px;
    font-weight: 820;
    text-decoration: none;
}

.authFormMeta a:hover,
.authSwitch a:hover {
    color: var(--auth-teal);
}

.authEmailButton {
    background: #ffffff;
    border: 1px solid var(--auth-line-strong);
    color: var(--auth-ink);
    margin-top: 4px;
}

.authEmailButton:hover {
    background: #f8f8f8;
    border-color: rgba(169, 131, 56, .42);
    color: var(--auth-ink);
}

.authSwitch {
    border-top: 1px solid var(--auth-line);
    color: var(--auth-muted);
    font-size: 14px;
    font-weight: 580;
    line-height: 1.45;
    margin: 24px 0 0;
    padding-top: 20px;
    text-align: center;
}

.authErrorSummary {
    background: rgba(184, 74, 74, .08);
    border: 1px solid rgba(184, 74, 74, .2);
    border-radius: 8px;
    color: #8f2f2f;
    display: grid;
    gap: 6px;
    padding: 12px 14px;
}

.authErrorSummary p,
.authFieldError {
    margin: 0;
}

.authFieldError {
    color: #9b3434;
    font-size: 13px;
    font-weight: 680;
    line-height: 1.35;
}

.authCaptcha {
    overflow-x: auto;
}

@media (max-width: 900px) {
    .authPage {
        padding: 24px 16px 44px;
    }

    .authShell {
        max-width: 500px;
    }
}

@media (max-width: 560px) {
    .authPage {
        padding: 18px 12px 36px;
    }

    .authCard {
        padding: 24px 18px;
    }

    .authCard::before {
        left: 18px;
        right: 18px;
    }

    .authCard h2 {
        font-size: 34px;
    }

    .authFormMeta {
        align-items: flex-start;
        flex-direction: column;
    }

}
