/* estilos_index.css */
:root {
    --primary-color: #1a4b84;
    --accent-color: #2c7be5;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.contenedor-formulario {
    width: 100%;
    max-width: 1100px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
}

.imagen-formulario {
    flex: 1;
    background: linear-gradient(135deg, rgba(26,75,132,0.8), rgba(44,123,229,0.8)),
                url('../img/logo.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 600px;
}

.imagen-formulario::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(26,75,132,0.2),
        rgba(44,123,229,0.2)
    );
}

.formulario {
    flex: 1;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}

.logo {
    margin-bottom: 2rem;
    text-align: center;
}

.logo img {
    width: 120px;
    height: auto;
}

.texto-formulario {
    text-align: center;
    margin-bottom: 2.5rem;
}

.texto-formulario h2 {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.texto-formulario p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.input {
    margin-bottom: 1.5rem;
}

.input label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.input input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(44,123,229,0.1);
}

.input input::placeholder {
    color: var(--text-light);
}

.password-olvidada {
    text-align: right;
    margin-bottom: 1.5rem;
}

.password-olvidada a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.password-olvidada a:hover {
    color: var(--primary-color);
}

.btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.875rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn i {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 968px) {
    .contenedor-formulario {
        flex-direction: column;
        max-width: 500px;
    }

    .imagen-formulario {
        min-height: 200px;
    }

    .formulario {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .formulario {
        padding: 1.5rem;
    }

    .texto-formulario h2 {
        font-size: 1.75rem;
    }
}

/* Animaciones */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo, .texto-formulario, .input, .password-olvidada, .btn {
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
}

.logo { animation-delay: 0.2s; }
.texto-formulario { animation-delay: 0.3s; }
.input:nth-child(1) { animation-delay: 0.4s; }
.input:nth-child(2) { animation-delay: 0.5s; }
.password-olvidada { animation-delay: 0.6s; }
.btn { animation-delay: 0.7s; }

/* Efecto de brillo en el botón */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.5s;
}

.btn:hover::before {
    left: 125%;
}

/* Input icon styles */
.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-icon input {
    padding-left: 2.75rem;
}