/* public/css/style.css */
:root {
    --vinotinto-oscuro: #4a0404;
    --vinotinto-medio: #6b0d0d;
    --vinotinto-claro: #8e1b1b;
    --azul-boton: #8e1b1b;
    --gris-suave: #f3f4f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #2d0a0a 0%, #4a0404 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-container {
    width: 1000px;
    max-width: 100%;
    height: 600px;
    background: #fff;
    border-radius: 40px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* LADO IZQUIERDO */
.side-info {
    flex: 1;
    
    background: url('../images/empresa.jpg');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* Asegura que no se repita */
    
    position: relative;
    padding: 60px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}
.info-content h1, .info-content h2, .info-content p {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.info-content {
    position: relative;
    z-index: 10;
}

.info-content h1 {
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
}

.info-content h2 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 20px;
}

.info-content h2 span { font-weight: 700; }

.info-content p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 320px;
}

/* ESFERAS 3D */
.sphere {
    position: absolute;
    border-radius: 50%;
}

.sphere-1 {
    width: 350px; height: 350px;
    background: radial-gradient(circle at 30% 30%, #a52a2a, #300000);
    top: -100px; left: -100px;
    opacity: 0.7;
}

.sphere-2 {
    width: 250px; height: 250px;
    background: radial-gradient(circle at 30% 30%, #800000, #200000);
    bottom: -50px; left: -30px;
}

.sphere-3 {
    width: 220px; height: 220px;
    background: radial-gradient(circle at 30% 30%, #bd2c2c, #400000);
    bottom: 80px; right: -70px;
    box-shadow: 10px 10px 40px rgba(0,0,0,0.3);
}

/* LADO DERECHO */
.side-form {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    position: relative;
}

.form-wrapper { width: 100%; z-index: 10; }

.header-form h2 {
    font-size: 36px;
    color: #111827;
    margin-bottom: 10px;
}

.header-form p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 35px;
}

.input-group {
    margin-bottom: 15px;
}

.input-box {
    display: flex;
    align-items: center;
    background: var(--gris-suave);
    border-radius: 15px;
    padding: 15px 20px;
}

.input-box i {
    color: #4b5563;
    margin-right: 15px;
    font-size: 18px;
}

.input-box input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: #1f2937;
}

.btn-show {
    font-size: 12px;
    font-weight: 700;
    color: var(--vinotinto-oscuro);
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 30px;
    color: #4b5563;
}

.form-actions a {
    color: var(--vinotinto-oscuro);
    text-decoration: none;
    font-weight: 600;
}

.btn-main {
    width: 100%;
    padding: 16px;
    background: var(--azul-boton);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
}

.btn-main:hover {
    background: #002244;
    transform: translateY(-2px);
}

.separator {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    color: #9ca3af;
    font-size: 14px;
}

.separator::before, .separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 44%;
    height: 1px;
    background: #e5e7eb;
}
.separator::before { left: 0; }
.separator::after { right: 0; }

.btn-outline {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid #111;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 25px;
}

.footer-text {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.footer-text a {
    color: var(--vinotinto-oscuro);
    font-weight: 700;
    text-decoration: none;
}

.sphere-mini {
    width: 120px; height: 120px;
    background: linear-gradient(135deg, #f3f4f6 0%, var(--vinotinto-claro) 100%);
    position: absolute;
    bottom: -60px; right: -60px;
    border-radius: 50%;
    opacity: 0.4;
}

@media (max-width: 850px) {
    .side-info { display: none; }
    .main-container { width: 450px; height: auto; }
}

/* Estilo para el logo en el formulario */
.form-logo {
    width: 300px !important;    /* Forzamos el ancho */
    height: auto !important;     /* Mantenemos la proporción */
    max-width: 100%;             
    display: block;
    margin: 0 auto 20px auto;    /* Centrado y con espacio abajo */
}
.header-form h2 {
    font-size: 30px;       /* Reducir un poco el título si el logo es muy grande */
    color: #111827;
    margin-bottom: 5px;
}

.header-form p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;   /* Reducir este margen para compensar el tamaño del logo */
}

/* Opcional: Si quieres que el título también se centre si el logo está centrado */
.header-form {
    text-align: center;
    width: 100%; /* Asegúrate de que ocupe todo el ancho disponible */
    margin-bottom: 20px;
}
@media (max-width: 992px) {
    .main-container {
        width: 90%;
        height: auto; /* Quitamos altura fija */
        min-height: 550px;
    }
    .side-info {
        padding: 40px;
    }
    .info-content h1 {
        font-size: 35px;
    }
}

/* Para Celulares (Menos de 850px) */
@media (max-width: 850px) {
    body {
        height: auto; /* Permitir scroll si el contenido es largo */
        min-height: 100vh;
        padding: 10px;
        display: flex;
        align-items: center; /* Centra verticalmente si sobra espacio */
    }

    .main-container {
        width: 100%;
        max-width: 450px;
        height: auto;
        border-radius: 30px; /* Bordes un poco más suaves en móvil */
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }

    .side-info {
        display: none; /* Ocultamos el panel izquierdo en móviles */
    }

    .side-form {
        padding: 40px 25px; /* Reducimos el padding lateral */
    }

    .form-logo {
        width: 200px !important; /* Logo más pequeño en móviles */
        margin-bottom: 15px;
    }

    .header-form h2 {
        font-size: 26px;
    }

    .header-form p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    /* Ajustar esferas decorativas en móvil */
    .sphere-mini {
        width: 80px;
        height: 80px;
        bottom: -40px;
        right: -40px;
    }
}

/* Para celulares muy pequeños (iPhone SE, etc.) */
@media (max-width: 380px) {
    .side-form {
        padding: 30px 15px;
    }
    
    .header-form h2 {
        font-size: 22px;
    }

    .input-box {
        padding: 12px 15px;
    }

    .btn-main, .btn-outline {
        padding: 12px;
    }

    .form-actions {
        flex-direction: column; /* Apilar "Recordarme" y "Olvide mi contraseña" */
        gap: 10px;
        align-items: flex-start;
    }
}