/* core/static/core/css/account/messages.css */

.auth-toast-container {
    position: fixed;
    display: flex;
    justify-content: flex-end;
    top: 1rem;
    right: 1rem;
    z-index: 100000;
    padding-left: 0.5rem;
}

.auth-toast-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 28rem;
}

.auth-toast {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem 0.875rem 1.375rem;
    border-radius: 1rem;
    min-height: 4rem;
    border: 1px solid rgb(0 0 0 / 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateX(0);
    background-color: rgb(var(--color-surface-50, 255 255 255) / 0.88);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 0.5px 0 rgb(255 255 255 / 0.6);
    color: rgb(var(--color-surface-900));
    font-family: var(--font-ui);
}

.auth-toast--hidden {
    opacity: 0;
    transform: translateX(calc(100% + 1.5rem));
}

.auth-toast-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-toast-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.125rem;
    text-transform: uppercase;
    line-height: 1;
}

.auth-toast--error .auth-toast-label { color: rgb(var(--color-destructive-600)); }
.auth-toast--success .auth-toast-label { color: rgb(var(--color-success-600)); }
.auth-toast--warning .auth-toast-label { color: rgb(var(--color-warning-600)); }
.auth-toast--info .auth-toast-label { color: rgb(var(--color-info-600)); }

.auth-toast-text {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25rem;
    margin: 0;
    color: rgb(var(--color-surface-800));
}

.auth-toast-dismiss {
    margin-left: 0.625rem;
    flex-shrink: 0;
    display: inline-flex;
    padding: 0.375rem;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
    color: rgb(var(--color-surface-400));
}

.auth-toast-dismiss:hover {
    background: rgb(0 0 0 / 0.06);
    color: rgb(var(--color-surface-600));
}

.auth-toast-dismiss:focus {
    outline: 1px solid rgb(var(--color-surface-400));
    outline-offset: 0;
}

.auth-toast-dismiss svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
    .auth-toast {
        background-color: rgb(var(--color-surface-950, 12 12 16) / 0.82);
        border-color: rgb(255 255 255 / 0.1);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 0.5px 0 rgb(255 255 255 / 0.07);
        color: rgb(var(--color-surface-50));
    }

    .auth-toast--error .auth-toast-label { color: rgb(var(--color-destructive-400)); }
    .auth-toast--success .auth-toast-label { color: rgb(var(--color-success-400)); }
    .auth-toast--warning .auth-toast-label { color: rgb(var(--color-warning-400)); }
    .auth-toast--info .auth-toast-label { color: rgb(var(--color-info-400)); }

    .auth-toast-text {
        color: rgb(var(--color-surface-200));
    }

    .auth-toast-dismiss {
        color: rgb(var(--color-surface-500));
    }

    .auth-toast-dismiss:hover {
        background: rgb(255 255 255 / 0.08);
        color: rgb(var(--color-surface-300));
    }
}
