.auth-demo {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, .22);
}

.auth-demo__header {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 14px;
}

.auth-demo__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(37, 99, 235, .08);
    color: #2563eb;
    font-size: 18px;
}

.auth-demo__header strong,
.auth-demo__header small,
.auth-demo__role-text strong,
.auth-demo__role-text small {
    display: block;
}

.auth-demo__header strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.auth-demo__header small {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

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

.auth-demo__role {
    width: 100%;
    min-height: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    border: 1px solid var(--auth-line);
    border-radius: 22px;
    background: #ffffff;
    color: inherit;
    text-align: center;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-demo__role:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .26);
    outline-offset: 3px;
}

.auth-demo__role:hover,
.auth-demo__role.is-selected {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, .64);
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, .10),
        0 16px 34px rgba(37, 99, 235, .14);
}

.auth-demo__role.is-selected .auth-demo__role-icon {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .24);
}

.auth-demo__role-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #eef4ff;
    color: #2563eb;
}

.auth-demo__role-text {
    min-width: 0;
}

.auth-demo__role-text strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1.1;
}

.auth-demo__role-text small {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-demo__role-description {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
}

.auth-demo__hint {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.auth-demo__hint.is-ready {
    color: #047857;
}

html[data-bs-theme="dark"] .auth-demo__header strong,
html[data-bs-theme="dark"] .auth-demo__role-text strong {
    color: #f8fafc;
}

html[data-bs-theme="dark"] .auth-demo__header small,
html[data-bs-theme="dark"] .auth-demo__role-text small,
html[data-bs-theme="dark"] .auth-demo__role-description,
html[data-bs-theme="dark"] .auth-demo__hint {
    color: #94a3b8;
}

html[data-bs-theme="dark"] .auth-demo__role {
    border-color: rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .76);
}

html[data-bs-theme="dark"] .auth-demo__role:hover,
html[data-bs-theme="dark"] .auth-demo__role.is-selected {
    background: rgba(15, 23, 42, .95);
}

html[data-bs-theme="dark"] .auth-demo {
    border-top-color: rgba(148, 163, 184, .18);
}

html[data-bs-theme="dark"] .auth-demo__icon,
html[data-bs-theme="dark"] .auth-demo__role-icon {
    background: rgba(37, 99, 235, .18);
    color: #93c5fd;
}

@media (max-width: 980px) {
    .auth-demo {
        margin-top: 22px;
    }

    .auth-demo__header {
        align-items: center;
    }
}

@media (max-width: 420px) {
    .auth-demo__roles {
        gap: 7px;
    }

    .auth-demo__role {
        min-height: 70px;
        border-radius: 18px;
        padding: 9px 5px;
    }

    .auth-demo__role-icon {
        width: 31px;
        height: 31px;
    }

    .auth-demo__role-text strong {
        font-size: 11px;
        letter-spacing: .04em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-demo__role {
        transition: none;
    }
}
