:root {
    /* Marca Flow ERP (tomada del logo) */
    --brand: #2488FA;
    --brand-strong: #201B82;
    --brand-soft: rgba(36, 136, 250, 0.10);
    --brand-ring: rgba(36, 136, 250, 0.22);
    --accent: #A37EE3;
    --accent-soft: rgba(163, 126, 227, 0.12);
    --sun: #C9B0F5;

    /* Tinta / neutros */
    --ink: #0F0C3D;
    --ink-2: #201B82;
    --text: #121212;
    --text-2: #475569;
    --text-3: #94A3B8;
    --line: #E4E9F0;
    --surface: #FFFFFF;
    --canvas: #F4F5F8;

    --radius: 14px;
    --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 40px -12px rgba(15, 23, 42, .14);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--canvas);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { cursor: pointer; }

/* ---------- Preloader ---------- */
#nm-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}
.custom-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid var(--brand-soft);
    border-top-color: var(--brand);
    border-right-color: var(--accent);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Layout 50 / 50 ---------- */
.auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---------- Panel izquierdo ---------- */
.auth-left {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    background:
        radial-gradient(600px 400px at 0% 0%, rgba(36, 136, 250, .09), transparent 60%),
        radial-gradient(500px 360px at 100% 100%, rgba(163, 126, 227, .07), transparent 60%),
        var(--canvas);
    overflow: hidden;
}

.auth-left-inner {
    width: 100%;
    max-width: 440px;
    margin: auto 0;           /* centra verticalmente */
    padding: 24px 0;
    animation: rise .55s var(--ease) both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.brand-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}
.brand-logo img {
    width: 230px;
    max-width: 70%;
    height: auto;
    display: block;
}

.login-card-inner {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    padding: 36px 34px 30px;
}

.card-inner-header {
    text-align: center;
    margin-bottom: 26px;
}
.card-inner-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    margin: 0 0 6px;
}
.card-inner-subtitle {
    font-size: 14px;
    color: var(--text-2);
    margin: 0;
    line-height: 1.5;
}

/* ---------- Campos ---------- */
.form-group-custom { margin-bottom: 18px; }

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.field-label-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-strong) !important;
    text-decoration: none !important;
    transition: color .2s;
}
.field-label-link:hover { color: var(--accent) !important; }

.input-wrapper { position: relative; }

.input-wrapper .input-icon-left {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-3);
    pointer-events: none;
    transition: color .2s;
}

.input-wrapper .form-control {
    height: 50px;
    width: 100%;
    padding: 0 46px 0 44px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
    background: #FAFBFD;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-wrapper .form-control::placeholder { color: var(--text-3); font-weight: 400; }
.input-wrapper .form-control:hover { border-color: #CBD5E1; }
.input-wrapper .form-control:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-ring);
}
.input-wrapper:focus-within .input-icon-left { color: var(--brand); }

.password-toggle-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-3);
    cursor: pointer;
    transition: color .2s, background .2s;
}
.password-toggle-btn:hover { color: var(--text); background: var(--canvas); }

/* ---------- Botones ---------- */
.btn-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}
.btn-actions-row > div { flex: 1; }

.btn-submit-main,
.btn-submit-main.btn-primary {
    position: relative;
    width: 100%;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    color: #fff !important;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%) !important;
    border: 0 !important;
    border-radius: var(--radius);
    box-shadow: 0 10px 24px -10px rgba(32, 27, 130, .65);
    overflow: hidden;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.btn-submit-main i { transition: transform .2s var(--ease); }
.btn-submit-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -10px rgba(32, 27, 130, .75);
    filter: saturate(1.1);
}
.btn-submit-main:hover i.fa-arrow-right { transform: translateX(3px); }
.btn-submit-main:active { transform: translateY(0); }
.btn-submit-main:focus { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.btn-submit-main:disabled { opacity: .75; cursor: wait; }

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-3);
}
.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.btn-biometric,
.btn-secondary-modern {
    width: 100%;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.btn-biometric i { font-size: 18px; color: var(--accent); transition: transform .25s var(--ease); }
.btn-biometric:hover {
    border-color: rgba(163, 126, 227, .45);
    background: #F6F1FD;
    box-shadow: 0 8px 20px -12px rgba(163, 126, 227, .5);
}
.btn-biometric:hover i { transform: scale(1.12); }
.btn-secondary-modern:hover { border-color: #CBD5E1; background: var(--canvas); }
.btn-biometric:focus, .btn-secondary-modern:focus { outline: none; box-shadow: 0 0 0 4px var(--brand-ring); }
.btn-biometric:disabled { opacity: .7; cursor: wait; }

.fingerprint-enroll-wrapper {
    text-align: center;
    margin-top: 18px;
}
.fingerprint-enroll-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2) !important;
    text-decoration: none !important;
    transition: color .2s;
}
.fingerprint-enroll-link span { color: var(--brand-strong); }
.fingerprint-enroll-link:hover span { color: var(--accent); }

/* ---------- Alertas ---------- */
#alerta-container:empty { display: none; }
#alerta-container { margin-bottom: 18px; }

#alerta-container .alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 13px 44px 13px 16px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    border-radius: 12px;
    border: 1px solid transparent;
    animation: rise .3s var(--ease) both;
}
#alerta-container .alert span { text-align: left !important; flex: 1; }
#alerta-container .alert-danger  { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
#alerta-container .alert-success { background: #F0FDF4; border-color: #BBF7D0; color: #15803D; }
#alerta-container .alert .close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    float: none;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    opacity: .6;
    text-shadow: none;
}
#alerta-container .alert .close:hover { opacity: 1; background: rgba(0,0,0,.05); }
#alerta-container .alert .close:empty::before { content: "\00d7"; }

/* ---------- Footer izquierdo ---------- */
.auth-left-footer {
    width: 100%;
    max-width: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-3);
    text-align: center;
}
.auth-left-footer i { color: var(--brand); }

/* ---------- Panel derecho ---------- */
.auth-right {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--ink) url("../images/login_banner.jpg") center center / cover no-repeat;
    color: #fff;
}
.auth-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 12, 61, .20) 0%, rgba(15, 12, 61, .45) 45%, rgba(15, 12, 61, .94) 100%),
        linear-gradient(135deg, rgba(36, 136, 250, .28) 0%, rgba(163, 126, 227, .12) 100%);
}

.auth-right-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 56px;
    max-width: 680px;
    animation: rise .7s .1s var(--ease) both;
}

.banner-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.banner-kicker .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(163, 126, 227, .25);
}

.banner-headline {
    font-size: clamp(28px, 2.6vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
    margin: 0 0 14px;
    color: #fff;
}
.banner-headline span {
    background: linear-gradient(90deg, #8EC5FF 0%, var(--sun) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.banner-description {
    font-size: 15.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
    margin: 0 0 28px;
    max-width: 520px;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.feature-list li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.feature-list li i { color: #8EC5FF; font-size: 14px; }

/* ---------- Cambio de formularios ---------- */
.login-form, .forget-form, .finger-form { animation: rise .3s var(--ease) both; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .auth-right-content { padding: 44px; }
}

@media (max-width: 991.98px) {
    .auth { grid-template-columns: 1fr; }
    .auth-right { display: none; }
    .auth-left {
        min-height: 100vh;
        min-height: 100dvh;
        background:
            radial-gradient(520px 360px at 0% 0%, rgba(36, 136, 250, .14), transparent 60%),
            radial-gradient(460px 320px at 100% 100%, rgba(163, 126, 227, .10), transparent 60%),
            var(--canvas);
    }
}

@media (max-width: 480px) {
    .auth-left { padding: 20px 16px; }
    .brand-logo { margin-bottom: 22px; }
    .brand-logo img { width: 190px; }
    .login-card-inner { padding: 28px 20px 24px; border-radius: 18px; }
    .card-inner-title { font-size: 21px; }
    .btn-actions-row { flex-direction: column-reverse; gap: 10px; }
}

@media (max-height: 700px) and (min-width: 992px) {
    .auth-right-content { padding: 36px 44px; }
    .banner-kicker { margin-bottom: 14px; }
    .banner-headline { font-size: clamp(24px, 2.2vw, 34px); }
    .banner-description { font-size: 14.5px; margin-bottom: 18px; }
    .brand-logo { margin-bottom: 18px; }
    .login-card-inner { padding: 26px 30px 22px; }
    .card-inner-header { margin-bottom: 18px; }
    .form-group-custom { margin-bottom: 14px; }
    .divider { margin: 16px 0 12px; }
}

/* =========================================================
   Fondo "aurora" animado (panel izquierdo)
   ========================================================= */
.auth-left-inner,
.auth-left-footer { position: relative; z-index: 1; }

.aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    will-change: transform;
}
.aurora span:nth-child(1) {
    width: 420px; height: 420px;
    top: -140px; left: -120px;
    background: rgba(36, 136, 250, .45);
    animation: drift1 18s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
    width: 360px; height: 360px;
    bottom: -140px; right: -100px;
    background: rgba(163, 126, 227, .30);
    animation: drift2 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
    width: 280px; height: 280px;
    top: 45%; left: 60%;
    background: rgba(32, 27, 130, .16);
    animation: drift3 26s ease-in-out infinite alternate;
}
.aurora::after {
    /* retícula de puntos muy sutil */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-100px, -90px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-160px, -60px) scale(.9); } }

/* Tarjeta con efecto vidrio sobre la aurora */
.login-card-inner {
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-color: rgba(228, 233, 240, .9);
}

/* Chip flotante del panel derecho */
.floating-chip {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    background: rgba(15, 12, 61, .45);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: rise .7s .3s var(--ease) both;
}

.pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    flex: 0 0 auto;
}
.pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
    0%   { transform: scale(1);   opacity: .7; }
    100% { transform: scale(2.8); opacity: 0; }
}

/* =========================================================
   Paso 2: selección de empresa
   ========================================================= */
.company-step { max-width: 480px; }
.company-card { padding: 28px 28px 22px; }

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-3);
}
.stepper li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.stepper-dot {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}
.stepper .is-done { color: var(--text-2); }
.stepper .is-done .stepper-dot { background: #DCFCE7; color: #16A34A; }
.stepper .is-current { color: var(--text); }
.stepper .is-current .stepper-dot {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
    box-shadow: 0 0 0 4px var(--brand-ring);
}
.stepper-line {
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #86EFAC, var(--brand));
}

/* Saludo del usuario */
.user-hello {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(36, 136, 250, .08), rgba(163, 126, 227, .06));
    border: 1px solid rgba(36, 136, 250, .18);
    border-radius: 14px;
}
.user-hello-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--ink-2), var(--ink));
}
.user-hello-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.user-hello-label { font-size: 11.5px; color: var(--text-2); font-weight: 500; }
.user-hello-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-hello-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: #15803D;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 999px;
    white-space: nowrap;
}

.company-header { text-align: left; margin-bottom: 18px; }
.company-header .card-inner-title { font-size: 22px; }
.company-header strong { color: var(--text); font-weight: 700; }

/* Buscador */
.company-search {
    position: relative;
    display: none;
    margin-bottom: 12px;
}
.company-search.is-visible { display: block; }
.company-search > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-3);
    pointer-events: none;
}
.company-search input {
    width: 100%;
    height: 44px;
    padding: 0 42px 0 40px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: #FAFBFD;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.company-search input::placeholder { color: var(--text-3); }
.company-search input:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-ring);
}
.company-search:focus-within > i { color: var(--brand); }

kbd,
.company-search-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-2);
    background: #fff;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    box-shadow: none;
}
.company-search-kbd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* Lista */
.company-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 316px;
    overflow-y: auto;
    margin: 0 -6px;
    padding: 4px 6px;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}
.company-list::-webkit-scrollbar { width: 6px; }
.company-list::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 6px; }

.company-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 12px 14px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .2s var(--ease);
    animation: rise .4s var(--ease) both;
}
.company-option:nth-child(2) { animation-delay: .04s; }
.company-option:nth-child(3) { animation-delay: .08s; }
.company-option:nth-child(4) { animation-delay: .12s; }
.company-option:nth-child(5) { animation-delay: .16s; }
.company-option:nth-child(n+6) { animation-delay: .2s; }

.company-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.company-option:hover {
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -14px rgba(15, 23, 42, .35);
}
.company-option.is-selected {
    border-color: var(--brand);
    background: linear-gradient(135deg, #EEF5FF, #F3F0FC);
    box-shadow: 0 0 0 4px var(--brand-ring), 0 10px 24px -16px rgba(32, 27, 130, .6);
}
.company-option input:focus-visible ~ .company-check { box-shadow: 0 0 0 3px var(--brand-ring); }

.company-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}

.company-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.company-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.company-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
}
.company-meta i { font-size: 10px; }

.company-check {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--line);
    color: transparent;
    font-size: 11px;
    transition: all .2s var(--ease);
}
.company-option.is-selected .company-check {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
    transform: scale(1.05);
}

.company-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 10px;
    font-size: 13.5px;
    color: var(--text-2);
    text-align: center;
    border: 1.5px dashed var(--line);
    border-radius: 14px;
}
.company-empty i { font-size: 24px; color: var(--text-3); }
.company-empty.is-visible { display: flex; }

.company-step .btn-actions-row { margin-top: 20px; }
.company-step .btn-submit-main span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 85%;
}

.company-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--text-3);
}

@media (max-width: 480px) {
    .company-card { padding: 22px 16px 18px; }
    .company-header .card-inner-title { font-size: 19px; }
    .user-hello-status { display: none; }
    .company-hint { display: none; }
    .company-list { max-height: none; }
    .stepper { font-size: 12px; }
}

@media (hover: none) {
    .company-hint, .company-search-kbd { display: none; }
    .company-search input { padding-right: 16px; }
}

@media (max-height: 760px) and (min-width: 992px) {
    .company-step .brand-logo { margin-bottom: 16px; }
    .company-step .stepper { margin-bottom: 16px; }
    .company-step .user-hello { margin-bottom: 16px; padding: 10px 12px; }
    .company-list { max-height: 236px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
