/* ========================================
   RATZ LOGIN - STYLE 3D GLITCH 2026 
   Compatible wp-login.php natif
   Externalisé + optimisé production
   Par Quentin Renaux - Février 2026
   ======================================== */

:root {
    --neon-pink: #ff00ff;
     --neon-pink: var(--c-accent);
    --neon-blue: #00ffff;
        --neon-blue: var(--c-accent);
    --neon-purple: #8a2be2;
        --neon-purple: var(--c-accent);
    --bg-dark: #0a0a0a;
    --card-bg: rgba(20, 20, 40, 0.9);
    --glass: rgba(255, 255, 255, 0.1);
    --shadow-neon: 0 0 30px var(--neon-blue);
    --shadow-neon: 0 0 30px var(--c-accent);
}

/* RESET + BASE */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY WP-LOGIN */
body.login {
    padding: 10px;
    padding: 10px;
    display: flex;
    height: auto;
    min-height: 100%;
}



@keyframes bgShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.theme-switcher {
    padding: 1px;
    position: fixed;
    right: 10px;
    top: 10px;
}

/* CONTENEUR WP */
#login {
    padding: 60px 20px;
    background: none;
    z-index: 10;
    position: relative;
        /*border: 4px solid var(--c-accent);*/
    padding: 10px;
    
}

body.login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgb(0 0 0 / 30%) 0%, #00000000 50%), radial-gradient(circle at 80% 20%, rgba(131, 74, 107, 0.3) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgb(0 0 0 / 30%) 0%, transparent 50%);
    background: radial-gradient(circle at 20% 80%, 
color-mix(in srgb, var(--c-accent) 30%, transparent) 0%, #00000000 50%), radial-gradient(circle at 80% 20%, 
color-mix(in srgb, var(--c-accent) 0%, transparent) 0%, transparent 50%), radial-gradient(circle at 40% 40%, 
color-mix(in srgb, var(--c-accent) 0%, transparent) 0%, transparent 50%);
    animation: bgShift 20s ease infinite;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 680px) {
    #login {
        padding: 30px 0px;
        margin: 150px auto 30px;
    }

  
}

/* LOGO + TITRE NEON */
#login h1 a {
    background-image: none !important;
    width: auto;
    height: auto;
    margin-bottom: 1rem;
    border: 4px solid var(--c-accent);
    padding: 10px;
    display: block;
    text-indent: unset;

    display: none;
}

#login h1 a img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: var(--shadow-neon);
    border: 2px solid var(--neon-blue);
}

.wf-site-title {
        /*border: 4px solid var(--c-accent);*/
    padding: 10px;
}

/* CARTE FORMULAIRE GLITCH */
#loginform {
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
    animation: glitchCard 0.8s cubic-bezier(0.25,0.46,0.45,0.94);

        border: 1px solid var(--c-accent);
    padding: 27px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

#loginform::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, var(--neon-blue), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;

        border: 4px solid var(--c-accent);
    padding: 10px;
}

#loginform:hover::before {
    opacity: 0.08;
}

@keyframes glitchCard {
    0% { 
        opacity: 0; 
        transform: translateY(40px) scale(0.95); 
    }
    50% { transform: translateY(-10px) scale(1.02); }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.login .button.wp-hide-pw {
    border: 1px solid var(--c-accent);
    position: absolute !important;
}

.dashicons-visibility:before {
    content: "\f177";
    color: var(--c-accent);
}

/* INPUTS NEON GLASS */
#user_login, 
#user_pass, 
#pass1, 
#pass2 {
    width: 100% !important;
    padding: 1.25rem 1.5rem !important;
    background: rgba(0,0,0,0.4) !important;
    border: 2px solid var(--glass) !important;
    border-radius: 16px !important;
    color: white !important;
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
    backdrop-filter: blur(15px);

    border: 2px solid var(--c-accent);
    padding: 10px;
    height: 50px;
}

#user_login:focus, 
#user_pass:focus, 
#pass1:focus, 
#pass2:focus {
    outline: none !important;
    border-color: var(--neon-blue) !important;
    box-shadow: var(--shadow-neon), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    transform: translateY(-2px) !important;
}

#user_login::placeholder, 
#user_pass::placeholder {
    color: rgba(255,255,255,0.4) !important;
}

/* BOUTON GLITCH */
#wp-submit {
    width: 100% !important;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink)) !important;
    background: linear-gradient(135deg, var(--bg-dark), var(--c-accent)) !important;
    border: 2px solid var(--c-accent) !important;
    border-radius: 20px !important;
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;

    box-shadow: 0 10px 25px color-mix(in srgb, var(--c-accent) 30%, transparent) !important;

  
        border: 2px solid var(--c-accent);
    padding: 10px;
}

#wp-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

#wp-submit:hover::before {
    left: 100%;
}

#wp-submit:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 20px 45px color-mix(in srgb, var(--c-accent) 60%, transparent) !important;
}

/* MOT DE PASSE OUBLIÉ - NEON PINK */
#nav, #backtoblog {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass);
}

#nav a, .button, #backtoblog a {
    color: var(--neon-pink) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    position: relative !important;

        padding: 0.4rem 1rem !important;

    margin: 0 10px !important;
    
    border: 1px dotted var(--c-accent) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

#nav a::after, .button::after, #backtoblog a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-pink);
    background: var(--c-accent);
    transition: width 0.3s ease;
}

#nav a:hover::after, .button:hover::after, #backtoblog a:hover::after {
    width: 100%;
}

#nav a:hover, .button:hover, #backtoblog a:hover {
    background: rgba(138,43,226,0.2) !important;
    box-shadow: var(--shadow-neon) !important;
    transform: translateY(-2px) scale(1.05) !important;
}






.login #nav {
    margin: 10px 0 0;
}

#backtoblog {
    margin-top: 10px;
    padding-top: 10px;
}












/* CUBE 3D - POSITION HAUT GAUCHE */

/* CUBE 3D */
.wf-cube-container {
    position: fixed;
    top: 2rem; left: 2rem;
    z-index: 100;
    perspective: 1000px;
    opacity: 0.9;
}

.wf-cube {
    width: 120px; height: 120px;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeRotate 12s infinite linear;
}

.cube-face {
    position: absolute;
    width: 120px; height: 120px;
    border: 2px solid var(--neon-blue);
    border: 2px solid var(--c-accent);
    backdrop-filter: blur(10px);
    background: rgba(0, 20, 40, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-neon);
}

.cube-face.front  { transform: rotateY(0deg)   translateZ(60px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(60px); }
.cube-face.right  { transform: rotateY(90deg)  translateZ(60px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(60px); }
.cube-face.top    { transform: rotateX(90deg)  translateZ(60px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(60px      ); }
.cube-text {
    background: linear-gradient(45deg, var(--neon-pink), var    (--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 5px var(--neon-blue));
}

@keyframes cubeRotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@media (max-width: 680px) {

    .wf-cube-container {
    position: absolute !important;
    }
    .wf-cube {
        width: 70px; height: 70px;
    }
        .cube-face {
        width: 70px; height: 70px;
    }

    .cube-face.front  { transform: rotateY(0deg)   translateZ(35px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(35px); }
.cube-face.right  { transform: rotateY(90deg)  translateZ(35px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(35px); }
.cube-face.top    { transform: rotateX(90deg)  translateZ(35px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(35px); }
}


.wf-credit {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}

.wf-credit a {
    color: var(--neon-pink);
     color: var(--c-accent);
    text-decoration: none;
    font-weight: 600;
}

.social-links {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--glass);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--glass);
    box-shadow: var(--shadow-neon);
    transform: translateY(-1px);
}

/* CLEANUP WP */
body.login #login p.message,
body.login .forgetmenot {
    display: none !important;
}



.wf-status {
    
            background: rgba(239,68,68,0.15);
            border: 1px solid #ef4444;
            border-radius: 12px;
            padding: 0.75rem 1rem;
            margin-bottom: 1rem;
            backdrop-filter: blur(10px);
            text-align: center;
            font-weight: 600;
            color: #fca5a5;
            font-size: 0.85rem;
            box-shadow: 0 8px 25px rgba(239,68,68,0.2);

                border: 4px solid var(--c-accent);
    padding: 10px;

    display: none;
        
}

.wf-site-meta {
   
    display: none;
}

#nav, #backtoblog {
    border-top: 0px solid var(--glass);
}

.language-switcher {
    margin: 0 auto;
    padding: 0 0 24px;
    text-align: center;
    position: absolute;
    z-index: 1;

        border: 4px solid var(--c-accent);
    padding: 10px;

    display: none;
}