.auth-page {
    min-height: 100vh;
    padding: 32px 18px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, rgba(74, 118, 168, 0.18), transparent 38%),
        #f4f6f9;
}

.auth-shell {
    width: min(100%, 460px);
}

.auth-brand {
    margin-bottom: 20px;
    color: #23364d;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.auth-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
}

.auth-card {
    padding: 30px;
    border: 1px solid #dfe5ec;
    border-radius: 14px;
    background: white;
    box-shadow: 0 18px 45px rgba(35, 54, 77, 0.1);
}

.auth-card h1 {
    color: #23364d;
    font-size: 26px;
    line-height: 1.25;
}

.auth-intro {
    margin: 8px 0 24px;
    color: #617083;
    font-size: 14px;
}

.auth-field {
    margin-bottom: 17px;
}

.auth-field label {
    margin-bottom: 6px;
    color: #33475f;
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    color: #1f2937;
    font: inherit;
}

.auth-field input:focus {
    border-color: #4a76a8;
    outline: 3px solid rgba(74, 118, 168, 0.14);
}

.auth-field input.is-invalid {
    border-color: #b42318;
}

.auth-error {
    margin-top: 6px;
    color: #b42318;
    font-size: 13px;
}

.auth-options {
    margin: -2px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 13px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.auth-link {
    color: #365e89;
    font-weight: 600;
}

.auth-submit {
    width: 100%;
    min-height: 45px;
    border: 0;
    border-radius: 8px;
    background: #4a76a8;
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    background: #365e89;
}

.auth-alternative {
    margin-top: 22px;
    color: #617083;
    font-size: 14px;
    text-align: center;
}

.auth-guest-link {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e6eaf0;
    color: #365e89;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: block;
}

@media (max-width: 520px) {
    .auth-page {
        padding: 20px 14px;
        align-items: start;
    }

    .auth-card {
        padding: 24px 20px;
    }

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