/* 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 1.25rem;
    border-radius: 0.75rem;
    min-height: 4rem;
    border: 1px solid;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateX(0);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    background: rgb(var(--color-surface-50));
    color: rgb(var(--color-surface-900));
}

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

.auth-toast--error {
    border-color: rgb(var(--color-destructive-500));
}

.auth-toast--success {
    border-color: rgb(var(--color-success-500));
}

.auth-toast--warning {
    border-color: rgb(var(--color-warning-500));
}

.auth-toast--info {
    border-color: rgb(var(--color-info-500));
}

.auth-toast-icon {
    flex-shrink: 0;
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.auth-toast-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

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

.auth-toast-body {
    flex: 1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-toast-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    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.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    margin: 0;
}

.auth-toast-dismiss {
    margin-left: 0.75rem;
    flex-shrink: 0;
    display: inline-flex;
    padding: 0.375rem;
    border-radius: 9999px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgb(var(--color-surface-400));
}

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

.auth-toast-dismiss:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

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

@media (prefers-color-scheme: dark) {
    .auth-toast {
        background: rgb(var(--color-surface-800));
        color: rgb(var(--color-surface-50));
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    }

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

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

    .auth-toast-dismiss:hover {
        background: rgb(var(--color-surface-700));
        color: rgb(var(--color-surface-200));
    }
}
