/* GALPONQUI - Estilos de Login */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #27AE60;
    --text-color: #ecf0f1;
    --hover-color: rgba(255, 255, 255, 0.1);
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #666;
    --border-color: #e9ecef;
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 5px 15px rgba(39, 174, 96, 0.3);
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Contenedor principal */
.container {
    display: flex;
    width: 900px;
    max-width: 95%;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
    min-height: 500px;
}

/* Sección izquierda (Login) */
.login-section {
    width: 50%;
    padding: 50px 40px;
    text-align: center;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: bold;
}

.login-section h2 i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Mensajes de error */
.error {
    background: #ff6b6b;
    color: var(--white);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shake 0.5s ease-in-out;
}

.error i {
    margin-right: 8px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Formulario */
form {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-gray);
    font-size: 1.1em;
    transition: var(--transition);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1em;
    transition: var(--transition);
    background: var(--light-gray);
    font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

input[type="text"]:focus + i,
input[type="password"]:focus + i {
    color: var(--accent-color);
}

/* Botón de envío */
button {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

button:hover {
    background: #1e8449;
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

button:active {
    transform: translateY(0);
}

button i {
    margin-right: 8px;
}

/* Sección de redes sociales */
.social-section {
    margin-top: 30px;
}

.social-section p {
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-size: 0.9em;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-icons a:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* Sección derecha (Mensaje de bienvenida) */
.welcome-section {
    width: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain2" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain2)"/></svg>');
    pointer-events: none;
}

.welcome-section > * {
    position: relative;
    z-index: 2;
}

.welcome-section h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: bold;
}

.welcome-section h2 i {
    color: var(--accent-color);
    margin-right: 10px;
}

.welcome-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.welcome-section a {
    display: inline-flex;
    align-items: center;
    padding: 15px 25px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    text-decoration: none;
    font-size: 1em;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.welcome-section a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.welcome-section a i {
    margin-right: 8px;
}

/* Botón de regreso */
.back-home {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1em;
    transition: var(--transition);
    z-index: 10;
    padding: 10px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-home:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.back-home i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        width: 95%;
        margin: 20px;
    }
    
    .login-section, .welcome-section {
        padding: 40px 30px;
    }
    
    .login-section h2,
    .welcome-section h2 {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 95%;
        margin: 20px;
        min-height: auto;
    }

    .login-section, .welcome-section {
        width: 100%;
        padding: 30px 20px;
    }

    .login-section h2,
    .welcome-section h2 {
        font-size: 2em;
    }

    .back-home {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 20px;
        display: inline-block;
    }
    
    .welcome-section {
        order: -1;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        margin: 10px;
        border-radius: 15px;
    }

    .login-section, .welcome-section {
        padding: 25px 15px;
    }
    
    .login-section h2,
    .welcome-section h2 {
        font-size: 1.8em;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    input[type="text"],
    input[type="password"] {
        padding: 12px 12px 12px 40px;
        font-size: 0.9em;
    }
    
    button {
        padding: 12px;
        font-size: 1em;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .login-section h2,
    .welcome-section h2 {
        font-size: 1.6em;
    }
    
    .welcome-section p {
        font-size: 1em;
    }
    
    .welcome-section a {
        padding: 12px 20px;
        font-size: 0.9em;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states para accesibilidad */
button:focus,
input:focus,
.social-icons a:focus,
.welcome-section a:focus,
.back-home:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Navegación por teclado */
.keyboard-navigation *:focus {
    outline: 3px solid var(--accent-color) !important;
    outline-offset: 2px !important;
}

/* Estados de validación */
input[aria-invalid="true"] {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
}

input[aria-invalid="false"] {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1) !important;
}

/* Animación de carga */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Estados de carga */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Utilidades */
.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}