﻿:root {
    --color-principal: #070939; /* Azul oscuro */
    --color-secundario-login: #0630d0; /* Azul claro */
    --color-toyota: #eb0a1e; /* Rojo Toyota */
    --color-btn-secundario: #f2f2f2;
    --color-fondo: #f8f9fa; /* Gris claro */
    --color-texto-mutado: #6c757d;
    --fuente-login: 'Montserrat', sans-serif;
    --borde-redondeado: 50px;
}

/* ==========================================================================
   RESET DE MÁRGENES (Obliga a la sección azul a pegarse a la orilla extrema)
   ========================================================================== */
html, body {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f8f9fa;
    font-family: "Montserrat", sans-serif;
    width: 100% !important;
    overflow-x: hidden; /* Evita que la pantalla baile de lado a lado */
}

    /* Rompe los contenedores rígidos heredados de _Layout_Login.cshtml */
    .login-root-container,
    body > .container,
    body > .container-fluid {
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

.split-container {
    min-height: 100vh;
    margin: 0 !important;
    width: 100% !important;
}

/* ==========================================================================
   SECCIÓN IZQUIERDA (AZUL - TOPADA A LA ORILLA)
   ========================================================================== */
.left-side {
    background: linear-gradient(135deg, var(--color-principal) 0%, var(--color-secundario-login) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    height: 100vh;
    margin-left: 0 !important; /* Asegura el contacto con el borde izquierdo */
}

    .left-side::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background-color: #0630d0;
    }

.brand-welcome {
    text-align: center;
}

    .brand-welcome h2 {
        font-weight: 700;
        letter-spacing: 2px;
        margin-top: 20px;
    }

/* ==========================================================================
   SECCIÓN DERECHA (FORMULARIO)
   ========================================================================== */
.right-side {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    min-height: 100vh;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
}

/* Inputs con Efecto Flotante */
.form-floating > .form-control {
    border: none;
    border-bottom: 2px solid #ced4da;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    background-color: transparent;
    box-shadow: none;
    transition: border-color 0.2s ease-in-out;
}

    .form-floating > .form-control:focus {
        border-color: #eb0a1e;
        background-color: transparent;
        box-shadow: none;
    }

.form-floating > label {
    padding-left: 0;
    color: #6c757d;
    transition: all 0.2s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--color-toyota);
    transform: scale(0.85) translateY(-0.5rem) translateX(0rem);
}

/* Botones Personalizados */
.btn-rounded {
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-submit {
    background-color: var(--color-principal);
    border: 1px solid var(--color-principal);
    color: white;
}

    .btn-submit:hover {
        background-color: var(--color-toyota);
        border-color: var(--color-toyota);
        color: white;
    }

.btn-microsoft {
    background-color: var(--color-btn-secundario);
    color: #333333;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

    .btn-microsoft:hover {
        background-color: #0078d4;
        color: white;
        border-color: #0078d4;
    }

    .btn-microsoft i {
        font-size: 20px;
    }

/* Carga de Fuentes */
@font-face {
    font-family: 'Montserrat';
    src: url('../Fonts/Monserrat/static/Montserrat-Light.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
