.auth-alerts {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
    background: rgba(31, 41, 55, 0.38);
}

.auth-alert {
    --auth-alert-accent: #64748b;
    position: relative;
    width: min(480px, 100%);
    box-sizing: border-box;
    padding: 24px 54px 24px 24px;
    border: 1px solid color-mix(in srgb, var(--auth-alert-accent) 28%, transparent);
    border-left: 6px solid var(--auth-alert-accent);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    color: #2b2b2b;
}

.auth-alert--error { --auth-alert-accent: #e31e24; }
.auth-alert--warning { --auth-alert-accent: #d97706; }
.auth-alert--success { --auth-alert-accent: #15803d; }

.auth-alert__title {
    display: block;
    margin: 0 0 8px;
    color: var(--auth-alert-accent);
    font-size: 18px;
    font-weight: 700;
}

.auth-alert__message {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.45;
}

.auth-alert__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    color: #3b3b3b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.auth-alert__close:hover,
.auth-alert__close:focus-visible {
    background: var(--auth-alert-accent);
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 560px) {
    .auth-alerts {
        align-items: flex-start;
        padding: 72px 14px 20px;
    }

    .auth-alert {
        padding: 20px 48px 20px 18px;
    }
}
