/* Estilos de la Página de Inicio de Sesión */

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    height: 100vh;
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Lado Izquierdo - Formulario */
.login-card {
    flex: 1;
    max-width: 500px;
    background: white;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

/* Lado Derecho - Imagen/Decoración */
.login-image {
    flex: 2;
    background: linear-gradient(135deg, var(--primary, #2962FF), var(--secondary, #4361ee));
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
    overflow: hidden;
}

/* Formas abstractas para el fondo */
.login-image::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.login-image::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.login-image .overlay {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
}

.login-image .overlay h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.login-image .overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Sección de Marca */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.logo-circle {
    width: 48px;
    height: 48px;
    background: var(--primary, #2962FF);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(41, 98, 255, 0.3);
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark, #1b263b);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Tipografía del Formulario */
.welcome-text {
    font-size: 2rem;
    color: var(--dark, #1b263b);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    color: var(--text-light, #8d99ae);
    margin-bottom: 2.5rem;
}

/* Elementos del Formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main, #2b2d42);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light, #8d99ae);
}

.form-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    /* Espacio para icono */
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.form-group input:focus {
    border-color: var(--primary, #2962FF);
    box-shadow: 0 0 0 4px rgba(41, 98, 255, 0.1);
    background: white;
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--secondary, #4361ee), var(--primary, #2962FF));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(41, 98, 255, 0.35);
    margin-top: 1rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(41, 98, 255, 0.45);
}

.btn-login:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.2);
}

/* Alerta */
.alert-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #c62828;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Adaptable (Responsive) */
@media (max-width: 900px) {
    .login-image {
        display: none;
    }

    .login-card {
        max-width: 100%;
        padding: 2rem;
    }
}