/* ===== GLOBAL ===== */
body{
    margin:0;
    font-family:'Segoe UI';
    color:white;
    overflow:auto;
}

/* ===== FONDO EPICO ===== */
.bg{
    position:fixed;
    width:100%;
    height:100%;
    background:
        radial-gradient(circle at 20% 30%, #1a0033, transparent),
        radial-gradient(circle at 80% 70%, #34006e, transparent),
        radial-gradient(circle at 50% 50%, #00330055, transparent),
        #020003;
    animation:bgMove 12s infinite alternate;
}

@keyframes bgMove{
    0%{filter:hue-rotate(0deg);}
    100%{filter:hue-rotate(20deg);}
}

/* ===== LAYOUT ===== */
.container{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    padding:16px 12px;
}

/* ===== CARD ===== */
.card{
    width:400px;
    max-width:100%;
    padding:18px 30px 20px;
    border-radius:20px;

    background:rgba(20,20,30,0.6);
    backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,0.05);

    box-shadow:
        0 0 30px rgba(128,0,255,0.3),
        0 0 60px rgba(128,0,255,0.2);

    transition:0.3s;
}

/* 🔥 HOVER */
.card:hover{
    transform:translateY(-3px);
}

/* ===== LOGO ===== */
.logo{
    width:60px;
    display:block;
    margin:auto;
    margin-bottom:2px;
    filter:drop-shadow(0 0 15px #8000ff);
}

/* ===== TEXTOS ===== */
h2{
    text-align:center;
    margin:6px 0 4px;
}

.subtitle{
    text-align:center;
    color:#aaa;
    font-size:14px;
    margin:0 0 12px;
}

/* ===== INPUT ===== */
input{
    box-sizing:border-box;
    width:100%;
    margin:4px 0 6px;
    padding:9px 12px;
    border-radius:10px;
    border:1px solid #333;
    background:#1a1a1a;
    color:white;
    transition:0.3s;
}

label{
    display:block;
    margin-top:3px;
    color:#dbe5ff;
    font-size:13px;
    font-weight:700;
}

.password-field{
    position:relative;
}

.password-field input{
    padding-right:46px;
}

.password-field > .password-toggle{
    position:absolute;
    right:8px;
    bottom:10px;
    width:28px;
    height:28px;
    margin:0;
    padding:0;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:8px;
    background:rgba(255,255,255,0.05);
    color:#dbe5ff;
    display:flex;
    align-items:center;
    justify-content:center;
    transform:none;
}

.password-field > .password-toggle:hover{
    transform:none;
    box-shadow:0 0 12px rgba(128,0,255,0.45);
}

.password-toggle-icon,
.password-toggle-icon svg{
    display:block;
    width:17px;
    height:17px;
    pointer-events:none;
}

/* 🔥 FOCUS PRO */
input:focus,
button:focus-visible,
a:focus-visible{
    border-color:#a855f7;
    box-shadow:0 0 15px #8000ff;
    outline:none;
}

.consent-row{
    display:grid;
    grid-template-columns:20px minmax(0,1fr);
    gap:10px;
    align-items:flex-start;
    margin:8px 0 2px;
    padding:8px 10px;
    border:1px solid rgba(0,255,136,0.22);
    border-radius:12px;
    background:rgba(0,255,136,0.06);
    color:#dbe5ff;
    text-align:left;
    font-size:12px;
    line-height:1.45;
}

.consent-row input{
    width:18px;
    height:18px;
    margin:1px 0 0;
}

.consent-row a{
    color:#69ffae;
}

/* ===== BOTON ===== */
button{
    width:100%;
    padding:10px 12px;
    border:none;
    border-radius:10px;
    background:linear-gradient(45deg,#8000ff,#ff00ff);
    color:white;
    cursor:pointer;
    margin-top:8px;
    transition:0.3s;
}

button:hover{
    box-shadow:0 0 20px #8000ff;
    transform:scale(1.03);
}

.google-btn{
    background:linear-gradient(45deg,#ffffff,#dcffe7);
    color:#10131d;
    font-weight:700;
}

.google-btn:hover{
    box-shadow:0 0 18px rgba(105,255,174,0.42);
}

/* ===== BOTON SECUNDARIO ===== */
.ghost{
    background:transparent;
    border:1px solid #8000ff;
}

/* ===== MENSAJES ===== */
.success{
    color:#00ff88;
    text-align:center;
    animation:fadeIn 0.3s;
}

.error{
    color:#ff3c3c;
    text-align:center;
    animation:shake 0.3s;
}

/* ===== HR ===== */
hr{
    margin:10px 0 2px;
    border:0;
    border-top:1px solid #333;
}

/* =========================
   🎉 ÉXITO OVERLAY
========================= */
.success-overlay{
    position:fixed;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.85);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:10;
}

.success-box{
    text-align:center;
    animation:pop 0.4s ease;
}

.success-box h1{
    font-size:80px;
    color:#00ff88;
    text-shadow:0 0 30px #00ff88;
}

.success-box p{
    font-size:18px;
}

/* ===== ANIMACIONES ===== */
@keyframes pop{
    0%{transform:scale(0.5);opacity:0;}
    100%{transform:scale(1);opacity:1;}
}

@keyframes fadeIn{
    from{opacity:0;}
    to{opacity:1;}
}

@keyframes shake{
    0%{transform:translateX(0);}
    25%{transform:translateX(-5px);}
    50%{transform:translateX(5px);}
    75%{transform:translateX(-5px);}
    100%{transform:translateX(0);}
}

/* 🔥 GLOW CUANDO REGISTRA */
.success-glow{
    box-shadow:0 0 40px #00ff88 !important;
}

/* ⚡ BORDE LASER */
.card::before {
    content: "";
    position: absolute;
    inset: -4px; /* tamaño del borde */
    border-radius: 22px;

    background: linear-gradient(
        90deg,
        #8000ff,
        #002fff,
        #02d0d0,
        #05ee85,
        #00ff73,
        #00ff73,
        #05ee85,
        #02d0d0,
        #002fff,
        #8000ff  
    );

    background-size: 300% 300%;

    animation: laserMove 4s linear infinite;

    z-index: -1;
}

.card::before {
    filter: blur(10px);
    opacity: 10;
}

/* 🧊 INTERIOR (para que no tape el fondo) */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(10,10,20,0.95);
    z-index: -1;
}

/* 🎯 ANIMACIÓN */
@keyframes laserMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

