body.public-auth-body {
    margin: 0;
    margin-bottom: 0;
    color: #f5f7fa;
    background:
        radial-gradient(circle at top, rgba(192, 27, 43, 0.18), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.07), transparent 28%),
        linear-gradient(145deg, #030405 0%, #0c0f13 42%, #171b20 100%);
}

.public-auth-shell {
    position: relative;
    min-height: 100vh;
    padding: 36px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.public-auth-shell::before,
.public-auth-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    pointer-events: none;
}

.public-auth-shell::before {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0) 70%);
}

.public-auth-shell::after {
    width: 360px;
    height: 360px;
    bottom: -150px;
    left: -80px;
    background: radial-gradient(circle, rgba(204, 35, 47, 0.2) 0%, rgba(204, 35, 47, 0) 72%);
}

.public-auth-stage {
    position: relative;
    z-index: 1;
    width: min(100%, 920px);
}

.auth-card {
    position: relative;
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 42px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(22, 24, 29, 0.94) 0%, rgba(8, 9, 12, 0.98) 100%);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(215, 32, 46, 0.9), rgba(255, 255, 255, 0));
    opacity: 0.9;
}

.auth-card--login {
    width: min(100%, 540px);
}

.auth-card--narrow {
    width: min(100%, 560px);
}

.auth-card--wide {
    width: min(100%, 880px);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    margin-bottom: 34px;
}

.auth-brand--compact {
    margin-bottom: 24px;
}

.auth-brand__logo {
    width: min(100%, 280px);
    height: auto;
    display: block;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.3));
}

.auth-brand__logo--small {
    width: min(100%, 220px);
}

.auth-brand__kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.auth-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    margin-bottom: 28px;
}

.auth-heading--left {
    align-items: flex-start;
    text-align: left;
}

.auth-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.auth-subtitle {
    margin: 0;
    max-width: 42rem;
    color: rgba(232, 236, 242, 0.74);
    line-height: 1.6;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form--tight {
    gap: 16px;
}

.auth-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field--full {
    grid-column: 1 / -1;
}

.auth-field label {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 54px;
    padding: 15px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.auth-input::placeholder {
    color: rgba(190, 197, 206, 0.5);
}

.auth-input:hover {
    background: rgba(255, 255, 255, 0.055);
}

.auth-input:focus {
    border-color: rgba(227, 66, 76, 0.72);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(227, 66, 76, 0.16);
    outline: none;
}

.auth-submit {
    width: 100%;
    box-sizing: border-box;
    min-height: 54px;
    margin-top: 8px;
    border: 1px solid rgba(179, 24, 36, 0.88);
    border-radius: 16px;
    background: linear-gradient(135deg, #f04a54 0%, #cf1f2c 45%, #9f111e 100%);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(174, 21, 33, 0.34);
    filter: brightness(1.04);
}

.auth-submit:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 0 0 7px rgba(227, 66, 76, 0.28);
}

.auth-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    line-height: 1.5;
}

.auth-alert--error,
.validation-summary-errors {
    color: #ffd7d9;
    border-color: rgba(237, 90, 101, 0.34);
    background: rgba(139, 26, 36, 0.3);
}

.auth-alert--success {
    color: #dcffe8;
    border-color: rgba(94, 205, 142, 0.32);
    background: rgba(28, 97, 59, 0.34);
}

.validation-summary-valid {
    display: none;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-links--stacked {
    margin-top: 22px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.auth-inline-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 22px;
    align-items: center;
}

.auth-meta {
    margin: 0;
    color: rgba(232, 236, 242, 0.74);
}

.auth-link {
    color: #f6f7fb;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.auth-link:hover {
    color: #ff6b74;
}

.auth-link--strong {
    color: #ffffff;
}

.auth-link--secondary {
    color: rgba(232, 236, 242, 0.66);
}

.field-validation-error {
    color: #ffbcc1;
    font-size: 0.88rem;
}

.input-validation-error {
    border-color: rgba(237, 90, 101, 0.55);
    box-shadow: 0 0 0 4px rgba(237, 90, 101, 0.14);
}

@media (max-width: 720px) {
    .public-auth-shell {
        padding: 20px 14px;
        align-items: stretch;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .auth-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-field--full {
        grid-column: auto;
    }

    .auth-inline-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .auth-links--stacked {
        align-items: flex-start;
        text-align: left;
    }

    .auth-brand__logo {
        width: min(100%, 230px);
    }
}
