/* Top-center Toastify-style notification stack for public auth views */
.moon-toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(92vw, 380px);
    pointer-events: none;
}

.moon-toast {
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 32px 15px 14px;
    background: #ffffff;
    color: #757575;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(7, 18, 47, 0.14), 0 1px 4px rgba(7, 18, 47, 0.08);
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13.5px;
    line-height: 1.4;
    overflow: hidden;
    animation: moon-toast-in 0.25s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
}

.moon-toast.is-leaving {
    animation: moon-toast-out 0.22s ease forwards;
}

.moon-toast__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.moon-toast__body {
    flex: 1;
    word-break: break-word;
}

.moon-toast__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.15s ease;
}

.moon-toast__close:hover {
    color: #1f2937;
}

.moon-toast__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    transform-origin: left center;
    animation: moon-toast-progress 5s linear forwards;
}

.moon-toast--error .moon-toast__icon { color: #e74c3c; }
.moon-toast--error .moon-toast__progress { background: #e74c3c; }

.moon-toast--success .moon-toast__icon { color: #07bc0c; }
.moon-toast--success .moon-toast__progress { background: #07bc0c; }

.moon-toast--info .moon-toast__icon { color: #1C325F; }
.moon-toast--info .moon-toast__progress { background: #1C325F; }

@keyframes moon-toast-in {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes moon-toast-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-12px) scale(0.97); }
}

@keyframes moon-toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
