/* Manual de Práctica: Sistema Login/Registro con PHP, MySQL y JavaScript */
/* Archivo: login.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fondo principal de toda la página */
.cajafuera {
    width: 100vw;
    height: 100vh;
    /* Nuevo degradado: Tonos rosa y melón */
    background: linear-gradient(135deg, #ff758c, #ff7eb3, #ffb199); 
    display: grid;
    place-items: center;
}

/* La tarjeta blanca central */
.formulariocaja {
    width: 400px;
    height: 675px;
    background: #ffffff;
    margin: auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Contenedor de los botones Login/Registrar */
.botondeintercambiar {
    width: 220px;
    margin: 35px auto 20px auto;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 30px;
    background: #fdfdfd;
    display: flex;
}

/* Estilos complementarios para las etiquetas de botón internas */
.botoncambiarcaja {
    padding: 10px 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    outline: none;
    position: relative;
    text-align: center;
    width: 50%;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    z-index: 2;
    transition: color 0.3s;
}

/* El indicador deslizante dentro del selector (Tono Coral/Melón) */
#btnvai {
    top: 0;
    left: 0;
    position: absolute;
    width: 110px;
    height: 100%;
    background: #ff7b72; /* Color melón vibrante */
    border-radius: 30px;
    transition: .5s;
    z-index: 1;
}

/* Cada formulario tiene posicionamiento absoluto para el efecto de deslizamiento */
.grupo-entradas {
    position: absolute;
    width: 300px;
    top: 100px;
    transition: .5s;
    display: flex;
    flex-direction: column;
}

/* Posiciones iniciales de deslizamiento basadas en las reglas del manual */
#frmlogin {
    left: 50px; /* Visible por defecto */
}

#frmregistrar {
    left: 450px; /* Oculto a la derecha (fuera de vista) */
}

/* Elementos internos complementarios para una correcta visualización */
.logovai {
    text-align: center;
    margin-bottom: 15px;
}

.logovai img {
    max-height: 45px;
    width: auto;
}

.grupo-entradas b {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cajaentradatexto {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

.cajaentradatexto:focus {
    border-color: #ff7b72; /* Borde al escribir: Melón */
}

.cajaentradarecaptcha {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
}

.cajaentradarecaptcha:focus {
    border-color: #ff7b72; /* Borde al escribir: Melón */
}

/* Div que muestra el código captcha */
.fondorecaptcha {
    width: 100%;
    height: 45px;
    background-image: url('fondo.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    text-align: center;
    line-height: 45px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 6px;
    color: #222;
    cursor: pointer;
    user-select: none;
    margin: 12px 0;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', Courier, monospace;
}

/* Botón de envío (Tono Coral/Melón) */
.botonenviar {
    width: 100%;
    background: #ff7b72; 
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    margin-top: 10px;
}

.botonenviar:hover {
    background: #e66a61; /* Color ligeramente más oscuro al pasar el mouse */
}

.botonenviar:active {
    transform: scale(0.98);
}