/* public/assets/css/forgottenPasswordFlash/forgottenPasswordFlash.css */

.flash {
    position: fixed;
    top: 110px;
    right: 24px;
    z-index: 9999;

    display: flex;
    align-items: flex-start;
    gap: 14px;

    width: min(520px, calc(100vw - 32px));
    padding: 18px 20px;
    border-radius: 14px;

    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid transparent;

    font-family: "Roboto", sans-serif;
    line-height: 1.45;
    animation: forgottenPasswordFlashIn 0.22s ease-out;
}

.flash-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    word-break: break-word;
}

.flash-close {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;

    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 0.8;
}

.flash-close:hover {
    transform: scale(1.08);
    opacity: 1;
}

.flash-success {
    background: #eef8f0;
    border-color: #8bc79a;
    color: #1e4f2f;
}

.flash-success .flash-close {
    color: #1e4f2f;
}

.flash-error {
    background: #fff1f1;
    border-color: #e09a9a;
    color: #8c1d1d;
}

.flash-error .flash-close {
    color: #8c1d1d;
}

.flash-warning {
    background: #fff8e9;
    border-color: #e5c16d;
    color: #7a5600;
}

.flash-warning .flash-close {
    color: #7a5600;
}

.flash-info {
    background: #eef5ff;
    border-color: #8db3e8;
    color: #204d8d;
}

.flash-info .flash-close {
    color: #204d8d;
}

@keyframes forgottenPasswordFlashIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .flash {
        top: 92px;
        right: 12px;
        left: 12px;
        width: auto;
        padding: 16px 16px;
        border-radius: 12px;
    }

    .flash-text {
        font-size: 15px;
    }
}