/* ==========================================
   1. FONDO PRINCIPAL Y CONFIGURACIÓN GENERAL
   ========================================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cajafuera {
    width: 100vw;
    height: 100vh;
    /* Cambiamos el naranja original por el azul combinado que querías */
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: grid;
    place-items: center; /* Centra la tarjeta perfectamente */
    overflow: hidden;
}

/* ==========================================
   2. TARJETA BLANCA CENTRAL (CONTENEDOR)
   ========================================== */
.formulariocaja {
    width: 400px;
    height: 550px;
    background: #ffffff;
    position: absolute; 
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    padding: 35px;
    box-sizing: border-box;
    overflow: hidden; 
}

/* ==========================================
   3. SELECTOR / BOTONES DE INTERCAMBIO
   ========================================== */
.botondeintercambiar {
    width: 220px;
    margin: 0 auto 30px auto;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    display: flex;
    justify-content: space-around;
    background: #f1f5f9;
    padding: 4px;
}

/* Indicador azul deslizante */
#btnvai {
    top: 0;
    left: 0;
    position: absolute;
    width: 110px;
    height: 100%;
    background: linear-gradient(to right, #1c62c1, #3b82f6);
    border-radius: 30px;
    transition: .5s cubic-bezier(0.25, 1, 0.5, 1); /* Movimiento suave */
    z-index: 1;
}

/* Botones superiores */
.botoncambiarcaja {
    padding: 10px 0;
    width: 110px;
    cursor: pointer;
    background: transparent;
    border: 0;
    outline: none;
    position: relative;
    z-index: 2;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.4s ease;
}

/* ==========================================
   4. FORMULARIOS Y EFECTO DESLIZANTE
   ========================================== */
.grupo-entradas {
    position: absolute; /* Hace que se encimen y no se empujen hacia abajo */
    width: 330px; 
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: .5s cubic-bezier(0.25, 1, 0.5, 1); /* Velocidad del deslizamiento */
}

/* Posiciones iniciales que pide tu JavaScript */
#frmlogin {
    left: 50px; /* Visible al centro */
}

#frmregistrar {
    left: 450px; /* Escondido a la derecha del cuadro blanco */
}

/* Estilos de texto */
.grupo-entradas b {
    color: #475569;
    font-size: 14px;
    margin-bottom: -4px;
}

/* ==========================================
   5. DISEÑO DE ENTRADAS (INPUTS)
   ========================================== */
.cajaentradatexto, .cajaentradarecaptcha {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    background-color: #f8fafc;
    box-sizing: border-box;
}

.cajaentradatexto:focus, .cajaentradarecaptcha:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background-color: #ffffff;
}

/* ==========================================
   6. CAPTCHA Y BOTONES
   ========================================== */
.fondorecaptcha {
    width: 100%;
    height: 48px;
    background-image: url('../img/fondo.jpg'); /* Modificado para buscar la carpeta img */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 6px;
    color: #1e293b;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    box-sizing: border-box;
}

.botonenviar {
    width: 100%;
    padding: 12px;
    cursor: pointer;
    background: #1C62C1; /* El azul de la guía */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(28, 98, 193, 0.2);
    margin-top: 8px;
}

.botonenviar:hover {
    background: #144fa0;
}

.logovai {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.logovai img {
    height: 65px;
    width: auto;
}