/* --- Estilos Globales --- */
:root {
    --primary-red: #c60d3d; /* Color rojo principal de INACAL */
    --secondary-orange: #e65100; /* Color naranja para Office 365 */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --border-color: #ccc;
    --font-family: 'Roboto', sans-serif; /* Usando Roboto como ejemplo de fuente sans-serif limpia */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-gray);
 
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: var(--text-color);
    /* Puedes añadir el patrón de fondo sutil aquí si lo deseas */
    /* background-image: url('img/pattern.svg'); */
}

/* --- Contenedor Principal y Tarjeta --- */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    width: 100%;
    max-width: 900px;
    overflow: hidden; /* Para asegurar que el borde redondeado funcione con el panel rojo */
}

/* --- Sección del Formulario (Izquierda) --- */
.form-section {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.form-section h1 {
    font-size: 24px;
    color: #444;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.3;
}

.form-section h2 {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 25px;
}

form {
    width: 100%;
    max-width: 320px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.options-group {
    margin-bottom: 20px;
    text-align: left;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.remember-me input {
    margin-right: 8px;
}

/* Botones */
.btn-primary, .btn-secondary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--primary-red);
    color: #fff;
    margin-bottom: 15px;
}

.btn-primary:hover {
    background-color: #a00a31;
}

.forgot-password a {
    color: #c60d3d;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Separador con el círculo */
.separator {
    width: 100%;
    max-width: 320px;
    height: 1px;
    background-color: var(--border-color);
    margin: 30px 0;
    position: relative;
}

.separator span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

/* Sección de Office 365 */
.office-section p {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 15px;
}

.office-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.office-logo img {
    height: 25px; /* Ajusta según el tamaño de tu imagen */
    margin-right: 10px;
}

.office-logo span {
    font-size: 18px;
    font-weight: 500;
    color: #555;
}

.btn-secondary {
    background-color: #e65100;
    color: #fff;
    border: 2px solid var(--secondary-orange);
    transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background-color: var(--secondary-orange);
    color: #fff;
}

/* --- Sección del Logo (Derecha) --- */
.logo-section {
    flex: 1;
    background-color: #00aee9;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.main-logo {
    max-width: 150px; /* Ajusta según el tamaño de tu imagen */
    margin-right: 20px;
}

.inacal-text {
    display: flex;
    flex-direction: column;
}

.inacal-text .acronym {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.inacal-text .full-name {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

/* --- Responsividad Básica --- */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column; /* Cambia a columna en pantallas pequeñas */
    }
    
    .form-section, .logo-section {
        padding: 40px;
    }
    
    .logo-section {
        border-bottom-left-radius: 15px; /* Mueve el borde redondeado al panel rojo */
        border-bottom-right-radius: 15px;
    }
}