.auth-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.9)),
        url('assets/barbershop1.jpg') center / cover fixed;
}

.auth-page .logo {
    height: 120px;
}

.auth-navbar {
    align-items: flex-start;
}

.auth-navbar a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
}

.auth-navbar a:hover {
    color: var(--accent-red);
}

.auth-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 130px 20px 60px;
}

.auth-card {
    width: min(100%, 520px);
    padding: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 10, 12, 0.94);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.auth-card h1 {
    margin-top: 12px;
    font-size: clamp(34px, 8vw, 52px);
    letter-spacing: 2px;
}

.auth-intro,
.auth-code-form p,
.auth-email-check p,
.auth-signed-in p {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.auth-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-switch-button {
    padding: 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 1px;
    cursor: pointer;
}

.auth-switch-button.is-active {
    border-bottom-color: var(--accent-red);
    color: var(--text-light);
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form[hidden],
.auth-email-check[hidden],
.auth-signed-in[hidden] {
    display: none;
}

.auth-form label {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-form label span {
    color: rgba(255, 255, 255, 0.55);
    text-transform: none;
}

.auth-form input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0;
    background: #171719;
    color: var(--text-light);
    font-size: 16px;
}

.auth-form input:focus-visible,
.auth-switch-button:focus-visible,
.auth-text-button:focus-visible,
.auth-submit:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 3px;
}

.auth-name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-name-fields > div {
    display: grid;
    gap: 10px;
}

.auth-submit {
    width: 100%;
    margin-top: 16px;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

#forgot-password-link {
    justify-self: end;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    text-decoration: underline;
}

#forgot-password-link:hover,
#forgot-password-link:focus-visible {
    color: var(--accent-red);
}

#forgot-password-link:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 3px;
}

.auth-submit:disabled,
.auth-text-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.auth-text-button {
    justify-self: start;
    padding: 8px 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.78);
    text-align: left;
    text-decoration: underline;
    cursor: pointer;
}

.auth-email-check,
.auth-signed-in,
.auth-session-actions {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.auth-session-actions[hidden] {
    display: none;
}

.auth-status {
    min-height: 24px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.auth-status.is-error {
    color: #ff8b8b;
}

@media (max-width: 600px) {
    .auth-card {
        padding: 30px 22px;
    }

    .auth-name-fields {
        grid-template-columns: 1fr;
    }

    .auth-navbar {
        padding-right: 68px;
    }

    .auth-navbar a {
        font-size: 12px;
    }
}
