#magic-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
/* --- Layout --- */
.login-wrapper {
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image: url('../images/bgregister.png');
    background-size: cover;
    background-position: center;
}

.login-card {
    width: 550px;
    padding: 35px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.644), rgba(10, 10, 15, 0.87));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
    animation: loginFadeIn 0.6s ease;
}

/* --- Inputs --- */
.login-group {
    margin-bottom: 18px;
}

.login-group label {
    display: block;
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 13px;
}

.login-group input {
    width: 100%;
    padding: 11px;
    border-radius: 6px;

    border: none;
    border-bottom: 1px solid rgba(0,255,255,0.25);

    background: rgba(10, 10, 20, 0.75);
    opacity: 0.65;
    backdrop-filter: blur(10px);
    color: rgb(161, 217, 255);
    transition: 0.3s;
}

.login-group input:focus {
    opacity: 1;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0,255,255,0.35);
    outline: none;
}

/* --- Botão --- */
.login-button {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, #00ffff, #38bdf8);
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px #00ffff;
}

/* --- Mensagem de erro --- */
.login-error {
    color: #f87171;
    text-align: center;
    margin-bottom: 15px;
    font-size: 13px;
}

/* --- Animações --- */
@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Shake em erro --- */
@keyframes loginShake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

.login-shake {
    animation: loginShake 0.35s ease-in-out;
}

/* --- Título --- */
.login-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #00ffff;
    text-shadow: 0 0 12px #00ffff;
    margin-bottom: 25px;
}
/* Logo */
.login-logo {
    display: block;
    width: 42px;
    margin-top: 10px;
    filter: invert(88%) sepia(72%) saturate(3153%) hue-rotate(98deg) brightness(103%) contrast(103%);
}
.login-button:active {
    transform: translateY(1px) scale(0.99);
}
.login-error {
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.25);
    padding: 10px;
    border-radius: 6px;
}
@media (max-width: 480px) {
    .login-card {
        width: 100%;
        padding: 25px;
    }
}
/* Campo senha com ícone */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    transition: 0.3s;
    user-select: none;
}

.toggle-password:hover {
    opacity: 1;
    text-shadow: 0 0 8px #00ffff;
}


/* Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Ícone Font Awesome */
.input-fa {
    position: absolute;
    left: 14px;
    font-size: 15px;
    color: rgba(255,255,255,0.35);
    transition: 0.25s ease;
}

/* Input */
.input-wrapper input {
    width: 100%;
    padding: 12px 42px 12px 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.35);
    color: #fff;
    outline: none;
    transition: 0.25s ease;
}

/* Glow no foco */
.input-wrapper input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 12px rgba(0,255,255,0.25);
    background: rgba(0,0,0,0.55);
}

/* Ícone reage ao foco */
.input-wrapper input:focus + .toggle-password,
.input-wrapper input:focus ~ .input-fa {
    color: rgba(0,255,255,0.9);
    transform: scale(1.1);
}

/* Quando digitando */
.input-wrapper.typing .input-fa {
    color: rgba(0,255,255,1);
}

/* Toggle senha */
.toggle-password {
    position: absolute;
    right: 14px;
    font-size: 16px;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: 0.25s;
}

.toggle-password:hover {
    color: rgba(0,255,255,1);
    transform: scale(1.15);
}

/* ===== Container ===== */
.rk-user-dropdown {
    position: relative;
    list-style: none;
}

/* ===== Toggle ===== */
.rk-user-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 12px;
    transition: 0.25s ease;
    color: #fff;
}

/* ===== Dropdown ===== */
.rk-dropdown-menu {
    position: absolute;
    top: 130%;
    right: 0;
    width: 220px;

    background: linear-gradient(145deg, rgba(20,20,25,0.9), rgba(10,10,15,0.9));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.6),
        0 0 20px rgba(0,0,0,0.4);

    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

    z-index: 999;

    /* ?? atraso para evitar fechar instantâneo */
    transition-delay: 0.45s;
}
/* Área invisível que evita fechamento brusco */
.rk-user-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 12px; /* distância de tolerância */
}

/* ===== Hover Desktop (com delay natural) ===== */
@media (min-width: 769px) {
    .rk-user-dropdown:hover .rk-dropdown-menu {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;

        transition-delay: 0s;
    }
}

/* ===== Links ===== */
.rk-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    border-radius: 10px;
    margin: 4px 6px;
    transition: 0.2s ease;
}

/* ?? Hover neon ciano */
.rk-dropdown-menu a:hover {
    background: rgba(0,255,255,0.12);
    color: #00ffff;
}

/* Logout */
.rk-dropdown-menu a.rk-logout:hover {
    background: rgba(255,0,0,0.18);
    color: #ffb3b3;
}

/* ===== Remove ?rebarba quadrada? ===== */
.rk-dropdown-menu a {
    background-clip: padding-box;
}

/* ===== Header ===== */
.rk-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

/* Avatar grande */
.rk-dropdown-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0,255,255,0.35);
    box-shadow: 0 0 18px rgba(0,255,255,0.35);
    margin-bottom: 8px;
}

/* Nome */
.rk-dropdown-username {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Info extra */
.rk-dropdown-info {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
}

/* ===== Abrir no hover (desktop) ===== */
@media (min-width: 769px) {
    .rk-user-dropdown:hover .rk-dropdown-menu {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;

        transition-delay: 0s;
    }

    .rk-user-dropdown:hover .rk-chevron {
        transform: rotate(180deg);
    }
}

/* ===== Mobile Fullscreen ===== */
@media (max-width: 768px) {

    .rk-dropdown-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;

        border-radius: 0;
        transform: translateY(20px);
        opacity: 0;
    }

    .rk-user-dropdown.open .rk-dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .rk-dropdown-menu a {
        font-size: 18px;
        padding: 18px 24px;
    }
}


/* Avatar com moldura */
.rk-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;

    border: 2px solid rgba(0,255,255,0.35);
    box-shadow: 
        0 0 10px rgba(0,255,255,0.35),
        inset 0 0 6px rgba(0,255,255,0.25);

    transition: 0.3s ease;
}
/* =========================
   LOGOUT FX
========================= */

/* Fade Desktop */
body.rk-logout-fade {
    animation: rkFadeOut 0.35s ease forwards;
}

@keyframes rkFadeOut {
    to {
        opacity: 0;
        transform: scale(0.985);
        filter: blur(2px);
    }
}

/* Fade Mobile (mais dramático) */
@media (max-width: 768px) {
    body.rk-logout-fade {
        animation: rkFadeOutMobile 0.45s ease forwards;
    }

    @keyframes rkFadeOutMobile {
        to {
            opacity: 0;
            transform: translateY(10px) scale(0.97);
            filter: blur(4px);
        }
    }
}

/* Overlay */
.rk-logout-loader {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    animation: rkLoaderFadeIn 0.2s ease forwards;
}

@keyframes rkLoaderFadeIn {
    to { opacity: 1; }
}

/* Container logo */
.rk-loader-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 10px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0,255,255,0.35);
    box-shadow: 0 0 25px rgba(0,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rkLogoSpin 1.2s linear infinite;
}

/* Imagem */
.rk-loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Rotação suave */
@keyframes rkLogoSpin {
    to { transform: rotate(360deg); }
}
