:root {
    --azul-marino: #012840;
    --azul-claro: #009fe3;
    --azul-hover: #007bb0;
    --blanco: #ffffff;
    --texto-gris: #64748b;
    --sombra-fuerte: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

/* Fondo general con superposición oscura */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(rgba(1, 40, 64, 0.8), rgba(1, 40, 64, 0.9)),
                url('../assets/images/LosCabos_Front.jpg') center/cover no-repeat;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Caja contenedora (Tarjeta Blanca) */
.container-box {
    width: 100%;
    max-width: 450px;
    background: var(--blanco);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--sombra-fuerte);
    position: relative;
    overflow: hidden;
}

/* Barra decorativa superior */
.container-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--azul-marino), var(--azul-claro));
}

/* Títulos y Textos */
h2 {
    color: var(--azul-marino);
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: var(--texto-gris);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Inputs (Floating Labels Custom) */
.form-floating > .form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.form-floating > .form-control:focus {
    border-color: var(--azul-claro);
    box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.1);
}

/* Botón Principal con Degradado */
.btn-main {
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(135deg, var(--azul-claro) 0%, var(--azul-hover) 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 159, 227, 0.2);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 159, 227, 0.3);
    color: white;
}

/* Links */
.toggle-link {
    color: var(--azul-claro);
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.toggle-link:hover {
    color: var(--azul-marino);
    text-decoration: underline;
}

.back-home {
    color: var(--texto-gris);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}
.back-home:hover {
    color: var(--azul-marino);
}

/* Animación suave para el cambio de formulario */
.animate-fade {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}