/* =====================================================================
   Vista: Views/Admin/InicialAdmin.cshtml (acceso de administrador)
   Mismo diseño que PaginaDeInicio/Suscripcion y Compañia/CrearCompañia.
   ===================================================================== */
.ko-ia {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #0f2a3a;
    background: linear-gradient(180deg, #022335 0, #022335 300px, #eef5f9 300px);
}

.ko-ia * { box-sizing: border-box; }

/* Barra */
.ko-ia-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    border-bottom: 3px solid #3498db;
    background: #022335;
}

.ko-ia-marca {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
}

    .ko-ia-marca img { height: 32px; }

.ko-ia-enlace { color: #cfe6f3; font-size: 14px; text-decoration: none; }
    .ko-ia-enlace:hover { color: #fff; text-decoration: underline; }

/* Tarjeta */
.ko-ia-main {
    display: flex;
    justify-content: center;
    padding: 70px 20px 60px;
}

.ko-ia-tarjeta {
    width: 100%;
    max-width: 420px;
    padding: 36px 36px 28px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(2, 35, 53, .18);
    text-align: center;
}

.ko-ia-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: #022335;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 0 0 4px #e3f1fb;
}

.ko-ia-tarjeta h1 { margin: 0; font-size: 26px; font-weight: 800; }
.ko-ia-sub { margin: 6px 0 24px; font-size: 14px; color: #5b7385; }

/* Campos */
.ko-ia-campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    text-align: left;
}

    .ko-ia-campo label { margin-bottom: 5px; font-size: 14px; font-weight: 600; }

    .ko-ia-campo input {
        width: 100%;
        height: 44px;
        padding: 0 12px;
        border: 1px solid #c9d8e2;
        border-radius: 10px;
        background: #fff;
        font-size: 15px;
        color: #0f2a3a;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .ko-ia-campo input:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, .18);
        }

        .ko-ia-campo input.input-validation-error { border-color: #d64545; }

.ko-ia-msg { margin-top: 4px; font-size: 13px; color: #d64545; }

/* Botón */
.ko-ia-boton {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #3498db;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

    .ko-ia-boton:hover { background: #1f7fc0; }

.ko-ia-volver { display: inline-block; margin-top: 18px; color: #1f7fc0; font-size: 14px; }

/* Cargando (se oculta al terminar de cargar: InicialAdmin.js) */
.ko-ia-cargando {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 35, 53, .55);
}

.ko-ia-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ko-ia-girar .8s linear infinite;
}

@keyframes ko-ia-girar { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
    .ko-ia-barra { padding: 12px 16px; }
    .ko-ia-main { padding-top: 32px; }
    .ko-ia-tarjeta { padding: 28px 20px 22px; }
}