/* =========================
   FLASH MESSAGE WRAPPER
========================= */

.flash-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 420px;
    padding: 0 15px;
}

/* Prevent flash from pushing layout */
/* .signup-container {
    position: relative;
} */

/* =========================
   FLASH TOASTS
========================= */

.flash {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: slideDown 0.4s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
    color: #fff;
}

.flash i {
    font-size: 18px;
}

/* SUCCESS */
.flash-success {
    background: linear-gradient(
        135deg,
        rgba(46, 204, 113, 0.85),
        rgba(39, 174, 96, 0.85)
    );
}

/* ERROR */
.flash-error {
    background: linear-gradient(
        135deg,
        rgba(231, 76, 60, 0.85),
        rgba(192, 57, 43, 0.85)
    );
}

/* Close button */
.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.flash-close:hover {
    opacity: 1;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
