/**
 * login-split.css — Split layout (iteración Paso 1).
 *
 * Estrategia: position:fixed para el aside, padding-left al body para que el
 * form del core GLPI se desplace a la derecha. Sin necesidad de JS.
 */

/* Aside fijo a la izquierda, 44vw, alto completo, negro */
.sk-aside {
    position: fixed;
    top: 0;
    left: 0;
    width: 44vw;
    height: 100vh;
    background: #0B0B0B;
    z-index: 10;
    padding: 44px;
    box-sizing: border-box;
    color: #fff;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.sk-mid {
    margin-top: auto;       /* empuja hacia abajo */
    margin-bottom: 32px;    /* aire del fondo del aside */
    align-self: center;     /* centra horizontalmente en el aside */
    text-align: center;     /* centra el texto interno */
}
.sk-rule {
    margin-left: auto;
    margin-right: auto;
}

/* Wordmark sofka_ en la parte superior del aside */
.sk-wordmark {
    display: inline-block;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}
.sk-wordmark .sk-word { color: #fff; }
.sk-wordmark .sk-bar  { color: #FF7E08; }

/* Sección media: rule naranja + headline ESM + tag servicios */
.sk-mid {
    max-width: 380px;
}
.sk-rule {
    width: 46px;
    height: 4px;
    background: #FF7E08;
    border-radius: 2px;
    margin-bottom: 22px;
}
.sk-head {
    color: #fff;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 14px 0;
}
.sk-head .sk-hl {
    color: #FF7E08;
}
.sk-tag {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.01em;
    margin: 0;
}

/* Footer del aside: copyright (alineado a la derecha) */
.sk-foot {
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
}

/* ─── Form derecho: ajustes para que quepa sin scroll y se centre ──── */

/* Centrar verticalmente el contenido del form en todo el alto del viewport */
body.welcome-anonymous .flex-fill {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}
body.welcome-anonymous .container-tight {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    max-width: 100%;
    width: 100%;
}

/* Card sin sombra, sin borde, transparente, ancho cómodo */
body.welcome-anonymous .card.card-md {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    box-shadow: none;
    border: none;
    background: transparent;
}
body.welcome-anonymous .card.card-md .card-header,
body.welcome-anonymous .card.card-md .card-body {
    padding: 8px;
    background: transparent;
}

/* Apilar form (.col-md-5) y botón Google (.col-auto) verticalmente */
body.welcome-anonymous .card-body .row.justify-content-center {
    flex-direction: column !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}
body.welcome-anonymous .card-body .row.justify-content-center > .col-md-5,
body.welcome-anonymous .card-body .row.justify-content-center > .col-auto {
    width: 100% !important;
    max-width: 380px !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
}

/* Espacios entre elementos del form más compactos */
body.welcome-anonymous .mb-3 { margin-bottom: 10px !important; }
body.welcome-anonymous .mb-4 { margin-bottom: 12px !important; }
body.welcome-anonymous .card-header.mb-4 { margin-bottom: 16px !important; }

/* Botón Google a ancho completo */
body.welcome-anonymous .googleauth-btn,
body.welcome-anonymous .googleauth-container {
    width: 100% !important;
    box-sizing: border-box;
}
body.welcome-anonymous .googleauth-divider {
    margin-top: 4px !important;
    margin-bottom: 8px !important;
}

/* ─── Jerarquía de botones: Google primary, submit nativo secundario ──── */

/* Botón "Iniciar sesión" nativo: secundario, compacto, outline */
body.welcome-anonymous button[type="submit"],
body.welcome-anonymous .btn-primary {
    background: transparent !important;
    border: 1px solid #d1d1d1 !important;
    color: #5F5E5A !important;
    padding: 8px 20px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    width: auto !important;
    min-width: 130px;
    border-radius: 6px !important;
    box-shadow: none !important;
}
body.welcome-anonymous button[type="submit"]:hover,
body.welcome-anonymous .btn-primary:hover {
    border-color: #0B0B0B !important;
    color: #0B0B0B !important;
    background: transparent !important;
}

/* Botón Google: centro de atención — fondo negro Sofka, texto blanco, bold.
   La G a colores oficiales contrasta perfecto sobre negro (Google brand guideline). */
body.welcome-anonymous .googleauth-btn {
    background: #0B0B0B !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
    transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease !important;
}
body.welcome-anonymous .googleauth-btn:hover {
    background: #1a1a1a !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28) !important;
}
body.welcome-anonymous .googleauth-btn:active {
    transform: translateY(1px);
}

/* Mostrar el copyright nativo de GLPI anclado al pie del lado derecho.
   Usamos position:fixed para que no afecte el centrado del form. */
body.welcome-anonymous .text-center.text-muted.mt-3 {
    display: block !important;
    position: fixed !important;
    bottom: 24px;
    right: 32px;
    margin: 0 !important;
    padding: 0 !important;
    color: rgba(0, 0, 0, 0.42);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
    z-index: 5;
}

/* Reordenar elementos del form. El .forgot_password vive dentro de .form-footer
   (junto al button submit); usamos display:contents para subirlos al nivel del
   .col-md-5 y reordenar todo con flex-order. */
body.welcome-anonymous .col-md-5 {
    display: flex !important;
    flex-direction: column;
}
body.welcome-anonymous .col-md-5 .form-footer {
    display: contents;
}
/* Ocultar el título "Inicie sesión con su cuenta" — sobra, el aside ya
   comunica el contexto y el form se entiende solo. */
body.welcome-anonymous .col-md-5 > .card-header        { display: none !important; }

/* Orden visual final:
   1. Usuario     2. Contraseña     3. ¿Olvidó su clave?
   4. Recuérdame  5. Iniciar sesión */
body.welcome-anonymous .col-md-5 > .mb-3               { order: 1; }
body.welcome-anonymous .col-md-5 > .mb-4               { order: 2; }
body.welcome-anonymous .col-md-5 .forgot_password      { order: 3; margin: 4px 0 14px 0; text-align: right; }
body.welcome-anonymous .col-md-5 > .mb-2               { order: 4; margin-bottom: 12px !important; }
body.welcome-anonymous .col-md-5 button[type="submit"] { order: 5; }

/* El body de páginas anónimas se desplaza 44vw a la derecha para no taparse */
body.welcome-anonymous {
    padding-left: 44vw;
    margin: 0;
    box-sizing: border-box;
    min-height: 100vh;
}

/* En el login el wordmark Sofka vive en el aside negro — ocultamos el .glpi-logo
   del card central que GLPI inyecta por default (en páginas logueadas SÍ se ve). */
body.welcome-anonymous .glpi-logo {
    display: none !important;
}
