/* login.css - Estilos exclusivos para la página de login */

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

body {
    font-family: 'Manrope', sans-serif;
    background-color: #4a4a4a; /* gris oscuro ~60% (entre 60 y 70%) */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor principal de dos columnas */
.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1300px; /* un poco más angosto para que se vea el fondo */
    height: 90vh; /* altura relativa para dejar márgenes */
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Columna izquierda: formulario (40%) */
.login-form-column {
    flex: 0 0 40%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem; /* padding vertical aumentado */
}

.form-container {
    width: 100%;
    max-width: 400px;
}

/* Logos corporativos */
.brand-logos {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: center;
}

.logo-arpa {
    font-size: 1.8rem;
    font-weight: 600; /* un poco menos pesado */
    color: #C6A43F;
    letter-spacing: 1px;
}

.logo-integralbyte {
    font-size: 1.618rem;
    font-weight: 400;
    background: #566;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: #fed136;
    font-family: "Kaushan Script", "Helvetica Neue", Helvetica, Arial, cursive;
}

/* Título del formulario - más ligero */
.form-title {
    font-size: 1.6rem; /* reducido */
    font-weight: 500;  /* menos peso */
    color: #0B2B5C;
    margin-bottom: 1.5rem;
}

/* Alertas */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Grupos de inputs */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 1.1rem;
}

.input-field {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #ffffff;
}

.input-field:focus {
    outline: none;
    border-color: #C6A43F;
    box-shadow: 0 0 0 3px rgba(198, 164, 63, 0.2);
}

.field-validation-error {
    display: block;
    font-size: 0.85rem;
    color: #dc3545;
    margin-top: 0.3rem;
}

.text-danger {
    color: #dc3545;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Fila de "Olvidaste contraseña" */
.forgot-password-row {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-link {
    color: #0B2B5C;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #C6A43F;
    text-decoration: underline;
}

/* Botón principal */
.btn-login {
    width: 100%;
    background-color: #C6A43F;
    color: #1e293b;
    font-weight: 500; /* reducido */
    font-size: 1.1rem;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-bottom: 1.5rem;
}

.btn-login:hover {
    background-color: #b8860b;
    transform: scale(1.02);
}

.btn-login:active {
    transform: scale(0.98);
}

/* Enlace de registro */
.register-link {
    text-align: center;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 2rem;
}

.register-link a {
    color: #0B2B5C;
    font-weight: 500;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
    color: #C6A43F;
}

/* Copyright */
.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 2rem;
}

/* Columna derecha: beneficios (60%) */
.benefits-column {
    flex: 0 0 60%;
    background-color: #0B2B5C;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem; /* padding vertical aumentado */
    overflow: hidden;
}

.benefits-content {
    max-width: 550px;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

/* Título de beneficios - más ligero */
.benefits-title {
    font-size: 1.7rem; /* reducido */
    font-weight: 500;  /* menos peso */
    color: #C6A43F;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 300; /* más ligero */
}

.benefits-list i {
    color: #C6A43F;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.benefits-list span {
    color: #f0f4fa;
}

/* Patrón de fondo decorativo */
.pattern-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#C6A43F 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        height: auto;
        padding: 1rem;
        align-items: flex-start;
    }

    .login-wrapper {
        flex-direction: column;
        height: auto;
        max-width: 100%;
        margin: 0;
        border-radius: 16px;
    }

    .login-form-column,
    .benefits-column {
        flex: 1 1 auto;
        width: 100%;
        padding: 3rem 1.5rem; /* padding vertical ajustado */
    }

    .benefits-column {
        order: 2;
    }

    .benefits-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .benefits-list li {
        justify-content: center;
        text-align: left;
    }

    .form-container {
        max-width: 100%;
    }

    .form-title {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .benefits-title {
        font-size: 1.5rem;
    }

    .benefits-list li {
        font-size: 1rem;
    }
}