﻿/* =========================================================
   Mi Red - Welcome Toast
   Archivo dedicado: wwwroot/css/mired-welcome.css
========================================================= */

.mired-welcome-toast {
    position: fixed !important;
    top: 92px !important;
    right: 28px !important;
    z-index: 99999 !important;
    width: min(520px, calc(100vw - 32px)) !important;
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) 34px !important;
    gap: 15px !important;
    align-items: center !important;
    padding: 18px !important;
    border-radius: 26px !important;
    color: #e5edf8 !important;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.28), transparent 38%), radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.22), transparent 40%), linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98)) !important;
    border: 1px solid rgba(125, 211, 252, 0.34) !important;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    overflow: hidden !important;
    animation: miredWelcomeIn 0.38s ease-out both !important;
}

    .mired-welcome-toast::before {
        content: "" !important;
        position: absolute !important;
        inset: 0 !important;
        pointer-events: none !important;
        background: linear-gradient(90deg, rgba(125, 211, 252, 0.18), transparent 38%, rgba(250, 204, 21, 0.10)) !important;
        opacity: 0.78 !important;
    }

    .mired-welcome-toast::after {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 3px !important;
        background: linear-gradient(90deg, #38bdf8, #2563eb, #facc15) !important;
        animation: miredWelcomeLife 7s linear forwards !important;
    }

.mired-welcome-orb {
    position: relative !important;
    z-index: 1 !important;
    width: 52px !important;
    height: 52px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 20px !important;
    color: #dbeafe !important;
    font-size: 1.65rem !important;
    font-weight: 950 !important;
    background: radial-gradient(circle at top, rgba(147, 197, 253, 0.38), transparent 58%), rgba(30, 64, 175, 0.40) !important;
    border: 1px solid rgba(147, 197, 253, 0.28) !important;
    box-shadow: 0 16px 36px rgba(14, 165, 233, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

.mired-welcome-content {
    position: relative !important;
    z-index: 1 !important;
    min-width: 0 !important;
}

    .mired-welcome-content strong {
        display: block !important;
        color: #ffffff !important;
        font-size: 1.08rem !important;
        font-weight: 950 !important;
        line-height: 1.25 !important;
        letter-spacing: -0.02em !important;
    }

    .mired-welcome-content span {
        display: block !important;
        margin-top: 6px !important;
        color: #b6c4d8 !important;
        line-height: 1.45 !important;
        font-size: 0.94rem !important;
        font-weight: 650 !important;
    }

.mired-welcome-close {
    position: relative !important;
    z-index: 1 !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    border: 1px solid rgba(148, 163, 184, 0.30) !important;
    background: rgba(15, 23, 42, 0.76) !important;
    color: #cbd5e1 !important;
    padding: 0 !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease !important;
}

    .mired-welcome-close:hover {
        transform: translateY(-1px) !important;
        color: #ffffff !important;
        border-color: rgba(125, 211, 252, 0.54) !important;
        background: rgba(30, 64, 175, 0.46) !important;
    }

@keyframes miredWelcomeIn {
    from {
        opacity: 0;
        transform: translateY(-14px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes miredWelcomeLife {
    from {
        transform: scaleX(1);
        transform-origin: left;
    }

    to {
        transform: scaleX(0);
        transform-origin: left;
    }
}

@media (max-width: 760px) {
    .mired-welcome-toast {
        top: auto !important;
        right: 12px !important;
        left: 12px !important;
        bottom: 18px !important;
        width: auto !important;
        grid-template-columns: 48px minmax(0, 1fr) 32px !important;
        gap: 12px !important;
        padding: 15px !important;
        border-radius: 22px !important;
    }

    .mired-welcome-orb {
        width: 44px !important;
        height: 44px !important;
        border-radius: 17px !important;
        font-size: 1.32rem !important;
    }

    .mired-welcome-content strong {
        font-size: 1rem !important;
    }

    .mired-welcome-content span {
        font-size: 0.88rem !important;
    }
}

/* =========================================================
   Mi Red - Welcome Toast modo claro
========================================================= */

:is(html.theme-light, html[data-theme="light"], body.theme-light, body[data-theme="light"], [data-bs-theme="light"]) .mired-welcome-toast {
    color: #0f172a !important;
    background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 38%), radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.12), transparent 40%), linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.96)) !important;
    border: 1px solid rgba(37, 99, 235, 0.24) !important;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

    :is(html.theme-light, html[data-theme="light"], body.theme-light, body[data-theme="light"], [data-bs-theme="light"]) .mired-welcome-toast::before {
        background: linear-gradient( 90deg, rgba(14, 165, 233, 0.12), transparent 38%, rgba(250, 204, 21, 0.14) ) !important;
        opacity: 0.92 !important;
    }

:is(html.theme-light, html[data-theme="light"], body.theme-light, body[data-theme="light"], [data-bs-theme="light"]) .mired-welcome-orb {
    color: #1e3a8a !important;
    background: radial-gradient(circle at top, rgba(147, 197, 253, 0.48), transparent 58%), rgba(219, 234, 254, 0.88) !important;
    border: 1px solid rgba(37, 99, 235, 0.26) !important;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

:is(html.theme-light, html[data-theme="light"], body.theme-light, body[data-theme="light"], [data-bs-theme="light"]) .mired-welcome-content strong {
    color: #0f172a !important;
    text-shadow: none !important;
}

:is(html.theme-light, html[data-theme="light"], body.theme-light, body[data-theme="light"], [data-bs-theme="light"]) .mired-welcome-content span {
    color: #475569 !important;
    text-shadow: none !important;
}

:is(html.theme-light, html[data-theme="light"], body.theme-light, body[data-theme="light"], [data-bs-theme="light"]) .mired-welcome-close {
    color: #475569 !important;
    background: rgba(255, 255, 255, 0.82) !important;
    border: 1px solid rgba(148, 163, 184, 0.32) !important;
}

    :is(html.theme-light, html[data-theme="light"], body.theme-light, body[data-theme="light"], [data-bs-theme="light"]) .mired-welcome-close:hover {
        color: #0f172a !important;
        border-color: rgba(37, 99, 235, 0.42) !important;
        background: rgba(219, 234, 254, 0.92) !important;
    }

.mired-login-legal {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 0.78rem;
}

    .mired-login-legal a {
        color: var(--mired-text-muted, #94a3b8);
        text-decoration: none;
        transition: color 160ms ease;
    }

        .mired-login-legal a:hover {
            color: #38bdf8;
            text-decoration: underline;
        }

    .mired-login-legal span {
        color: rgba(148, 163, 184, 0.45);
    }