﻿@import "https://fonts.googleapis.com/css?family=Montserrat:300";

body {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500;
    line-height: 1.1;
    color: whitesmoke !important;
    background-color: #464f5b;
    padding-top: 100px;
}

.login-container {
    background-color: #464f5b;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1); /* Sombra más pronunciada */
    overflow: hidden;
    display: flex;
    width: 90%; /* Ocupa más ancho */
    max-width: 1000px; /* Ancho máximo para el contenedor */
    height: 600px; /* Altura fija */
}

/* Panel Izquierdo (Info de la cuenta) */
.left-panel {
    flex: 1; /* Ocupa la mitad del espacio disponible */
    padding: 50px; /* Más padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Alinea el texto a la izquierda */
    text-align: left;
    box-sizing: border-box;
    background-color: #464f5b; /* Fondo blanco para el panel izquierdo */
}

    .left-panel h2 {
        font-size: 2.2em; /* Tamaño del título */
        font-weight: 700; /* Negrita */
        color: #333;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .left-panel p {
        font-size: 0.95em;
        color: #666;
        line-height: 1.6;
        margin-bottom: 30px;
        max-width: 400px; /* Limita el ancho del párrafo */
    }

    .left-panel .graphic-placeholder {
        width: 100%;
        height: 200px; /* Altura del espacio para el gráfico */
        background-color: #e0f7fa; /* Color de fondo para simular el gráfico */
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><rect x="0" y="0" width="400" height="200" fill="%23e0f7fa" /><path d="M 50 150 L 100 100 L 150 120 L 200 80 L 250 110 L 300 70 L 350 90" fill="none" stroke="%2300838f" stroke-width="2" /><rect x="60" y="100" width="20" height="50" fill="%234CAF50" /><rect x="110" y="120" width="20" height="30" fill="%23FFC107" /><rect x="160" y="80" width="20" height="70" fill="%232196F3" /><circle cx="200" cy="100" r="40" fill="%23FF5722" /><circle cx="200" cy="100" r="20" fill="%23E0F7FA" /><circle cx="150" cy="120" r="15" fill="%239C27B0" /><rect x="20" y="20" width="80" height="60" fill="%23CFD8DC" rx="5" ry="5" stroke="%23607D8B" stroke-width="1" /><circle cx="40" cy="40" r="5" fill="%23F44336" /><path d="M 60 40 L 90 40 L 90 50 L 60 50 Z" fill="%23607D8B" /><circle cx="20" cy="20" r="5" fill="%23FFEB3B" /><circle cx="25" cy="25" r="5" fill="%238BC34A" /><circle cx="30" cy="30" r="5" fill="%2303A9F4" /><circle cx="35" cy="35" r="5" fill="%23FFC107" /><rect x="15" y="15" width="70" height="50" fill="none" stroke="%23424242" stroke-width="1" /><circle cx="45" cy="45" r="5" fill="%23795548" /><circle cx="55" cy="55" r="5" fill="%23607D8B" /><circle cx="65" cy="65" r="5" fill="%239E9E9E" /><circle cx="75" cy="75" r="5" fill="%23FF9800" /></svg>'); /* SVG para simular gráfico */
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        border-radius: 8px; /* Bordes redondeados para el gráfico */
    }


/* Panel Derecho (Formulario de Login) */
.right-panel {
    flex: 1; /* Ocupa la otra mitad del espacio disponible */
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centra los elementos del formulario */
    box-sizing: border-box;
    background-color: #fcfcfc; /* Fondo ligeramente diferente para contraste */
    border-left: 1px solid #464f5b; /* Borde sutil entre paneles */
    width: 600px;
    background-color: #525965;
}

.form-header {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

    .form-header h2 {
        font-size: 1.8em;
        font-weight: 600;
        color: whitesmoke;
        margin-bottom: 10px;
    }

    .form-header p {
        font-size: 0.9em;
        color: #777;
    }

.form-group {
    margin-bottom: 20px;
    width: 85%; /* Ancho de los campos de input, similar a la imagen */
    max-width: 350px; /* Ancho máximo para campos */
    text-align: left; /* Alinea labels a la izquierda */
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.9em;
        color: whitesmoke;
        font-weight: 600;
    }

    .form-group .input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

        .form-group .input-wrapper input {
            width: 100%;
            padding: 12px 15px; /* Padding interno */
            padding-left: 40px; /* Espacio para el icono */
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1em;
            box-sizing: border-box;
            transition: border-color 0.3s ease;
        }

            .form-group .input-wrapper input:focus {
                border-color: #007bff; /* Borde azul al enfocar */
                outline: none;
            }

    .form-group .input-icon {
        position: absolute;
        left: 15px;
        color: #999;
        font-size: 0.9em; /* Tamaño del icono */
    }

/* Iconos de ejemplo (cambiado 'icon-email' a 'icon-user') */
.icon-user::before {
    content: '👤';
}
/* *** CAMBIO AQUÍ: Icono de usuario *** */
.icon-lock::before {
    content: '🔒';
}

.login-button {
    width: 85%;
    max-width: 350px;
    padding: 15px 0;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    background-color: black; /* Color rojo similar al de la imagen */
    transition: background-color 0.3s ease;
    margin-bottom: 25px;
}

    .login-button:hover {
        background-color: #c0392b;
    }

.terms-link {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 20px;
}

    .terms-link a {
        color: #e74c3c; /* Color del enlace */
        text-decoration: none;
    }

        .terms-link a:hover {
            text-decoration: underline;
        }

.register-link {
    font-size: 0.85em;
    color: #666;
}

    .register-link a {
        color: #e74c3c;
        text-decoration: none;
        font-weight: bold;
    }

        .register-link a:hover {
            text-decoration: underline;
        }

/* Footer (parte inferior de la página de login) */
.login-footer {
    width: 100%;
    text-align: center;
    font-size: 0.75em;
    color: whitesmoke !important;
    margin-top: auto; /* Empuja el footer hacia abajo en el panel */
    padding-top: 30px; /* Espacio superior */
    border-top: 1px solid #464f5b; /* Línea separadora */
    box-sizing: border-box;
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column; /* Apila los paneles en pantallas pequeñas */
        height: auto; /* Altura automática para que el contenido se ajuste */
    }

    .left-panel, .right-panel {
        width: 100%; /* Ocupan todo el ancho */
        padding: 30px; /* Reduce el padding */
    }

    .left-panel {
        padding-bottom: 20px;
    }

    .right-panel {
        padding-top: 30px;
        border-left: none; /* Elimina el borde vertical */
        border-top: 1px solid #464f5b; /* Añade un borde superior */
    }

    .left-panel h2 {
        font-size: 1.8em;
    }

    .left-panel p {
        font-size: 0.9em;
    }

    .left-panel .graphic-placeholder {
        height: 150px; /* Reduce la altura del gráfico en móvil */
    }

    .login-footer {
        padding-top: 20px;
    }
}
