:root {
    --crm-bg-950: #020617;
    --crm-bg-900: #07111f;
    --crm-slate-900: #0f172a;
    --crm-slate-800: #1e293b;
    --crm-slate-700: #334155;
    --crm-slate-600: #475569;
    --crm-slate-500: #64748b;
    --crm-slate-400: #94a3b8;
    --crm-slate-300: #cbd5e1;
    --crm-slate-200: #e2e8f0;
    --crm-slate-100: #f1f5f9;
    --crm-slate-50: #f8fafc;

    --crm-blue: #2563eb;
    --crm-blue-dark: #1d4ed8;
    --crm-cyan: #0891b2;
    --crm-cyan-light: #e0faff;

    --crm-amber: #f59e0b;
    --crm-amber-soft: #fff7ed;

    --crm-green: #22c55e;

    --crm-danger: #dc2626;
    --crm-danger-soft: #fff1f2;

    --crm-white: #ffffff;

    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 16px;

    --shadow-shell: 0 36px 120px rgba(2, 6, 23, 0.48);
    --shadow-card: 0 24px 70px rgba(15, 23, 42, 0.16);
    --shadow-button: 0 18px 38px rgba(37, 99, 235, 0.28);

    --transition: 0.22s ease;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--crm-slate-900);
    background:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.38), transparent 26rem),
        radial-gradient(circle at 90% 14%, rgba(8, 145, 178, 0.28), transparent 24rem),
        radial-gradient(circle at 84% 90%, rgba(245, 158, 11, 0.16), transparent 28rem),
        linear-gradient(135deg, var(--crm-bg-950), var(--crm-bg-900) 52%, #111827);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.42;
    animation: crmGridMove 22s linear infinite;
}

@keyframes crmGridMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 46px 46px;
    }
}

/* =========================================================
   PANTALLA GENERAL
========================================================= */

.crm-login-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.crm-login-shell {
    width: min(1180px, 100%);
    min-height: 620px;
    height: calc(100dvh - 36px);
    max-height: 760px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.76fr);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-shell);
    animation: crmShellIn 0.55s ease both;
}

@keyframes crmShellIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   PANEL IZQUIERDO
========================================================= */

.crm-showcase {
    position: relative;
    isolation: isolate;
    padding: clamp(2rem, 4vw, 3.5rem);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--crm-white);
    background:
        linear-gradient(140deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.84)),
        radial-gradient(circle at 86% 14%, rgba(8, 145, 178, 0.38), transparent 25rem);
}

.crm-showcase::before,
.crm-showcase::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(14px);
    opacity: 0.32;
    z-index: -1;
}

.crm-showcase::before {
    width: 340px;
    height: 340px;
    top: -130px;
    right: -130px;
    background: #22d3ee;
    animation: crmOrbOne 8s ease-in-out infinite alternate;
}

.crm-showcase::after {
    width: 280px;
    height: 280px;
    left: -125px;
    bottom: -120px;
    background: #6366f1;
    animation: crmOrbTwo 9s ease-in-out infinite alternate;
}

@keyframes crmOrbOne {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-22px, 18px, 0) scale(1.08);
    }
}

@keyframes crmOrbTwo {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(24px, -18px, 0) scale(1.06);
    }
}

.rack-lines {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
    border: 1px solid rgba(255, 255, 255, 0.24);
    transform: rotate(-12deg);
}

.rack-lines-one {
    width: 420px;
    height: 220px;
    top: 72px;
    right: -90px;
    border-radius: 28px;
    background:
        repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.22) 35px 37px),
        repeating-linear-gradient(0deg, transparent 0 48px, rgba(255, 255, 255, 0.18) 49px 51px);
}

.rack-lines-two {
    width: 320px;
    height: 180px;
    left: -110px;
    bottom: 78px;
    border-radius: 24px;
    background:
        repeating-linear-gradient(90deg, transparent 0 30px, rgba(255, 255, 255, 0.18) 31px 33px),
        repeating-linear-gradient(0deg, transparent 0 42px, rgba(255, 255, 255, 0.16) 43px 45px);
}

.crm-showcase-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 610px;
}

.company-logo-card {
    width: 112px;
    height: 112px;
    margin-bottom: 1.4rem;
    border-radius: 30px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    animation: crmLogoFloat 4.2s ease-in-out infinite;
}

@keyframes crmLogoFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-7px) rotate(1deg);
    }
}

.company-logo {
    display: block;
    max-width: 86px;
    max-height: 86px;
    object-fit: contain;
}

.crm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #bae6fd;
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.crm-kicker i {
    color: var(--crm-amber);
}

.crm-showcase h1 {
    max-width: 12ch;
    margin: 0.45rem 0 0;
    font-size: clamp(2.8rem, 4.65vw, 4.65rem);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.075em;
}

.crm-showcase p {
    max-width: 42ch;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.02rem;
    line-height: 1.62;
}

.crm-feature-card {
    width: min(100%, 430px);
    margin-top: 1.7rem;
    padding: 0.95rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(255, 255, 255, 0.105);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 20px 45px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(14px);
}

.crm-feature-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--crm-white);
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--crm-blue), var(--crm-cyan));
    box-shadow: 0 16px 32px rgba(8, 145, 178, 0.22);
}

.crm-feature-card strong {
    display: block;
    color: var(--crm-white);
    font-size: 0.96rem;
}

.crm-feature-card span {
    display: block;
    margin-top: 0.12rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.82rem;
    line-height: 1.35;
}

/* =========================================================
   PANEL DERECHO
========================================================= */

.crm-auth-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.10), transparent 15rem),
        linear-gradient(180deg, var(--crm-white), var(--crm-slate-50));
    overflow: hidden;
}

.crm-auth-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    align-items: center;
}

.crm-auth-inner {
    width: min(100%, 430px);
    margin: auto;
    padding: 1.15rem;
}

.mobile-brand {
    display: none;
}

.crm-auth-card {
    width: 100%;
    padding: 1rem;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow:
        18px 18px 50px rgba(15, 23, 42, 0.10),
        -12px -12px 32px rgba(255, 255, 255, 0.88),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Esto evita que el NIP se vea antes de tiempo */
.auth-screen.d-none,
#nipForm.d-none,
#loginForm.d-none {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* =========================================================
   PASOS
========================================================= */

.crm-steps {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.62rem;
    margin-bottom: 0.95rem;
    padding: 0.62rem;
    border-radius: 20px;
    background: var(--crm-slate-50);
    border: 1px solid var(--crm-slate-200);
}

.crm-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    opacity: 0.55;
    transition: opacity var(--transition), transform var(--transition);
}

.crm-step-current {
    opacity: 1;
}

.crm-step span {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--crm-slate-500);
    background: var(--crm-slate-200);
    font-size: 0.82rem;
    font-weight: 950;
}

.crm-step-current span {
    color: var(--crm-white);
    background: linear-gradient(135deg, var(--crm-blue), var(--crm-cyan));
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
}

.crm-step strong {
    display: block;
    color: var(--crm-slate-900);
    font-size: 0.78rem;
    line-height: 1.05;
}

.crm-step small {
    display: block;
    color: var(--crm-slate-500);
    font-size: 0.67rem;
    white-space: nowrap;
}

.crm-step-line {
    height: 2px;
    min-width: 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--crm-blue), var(--crm-slate-300));
}

/* =========================================================
   FORMULARIOS
========================================================= */

.auth-screen {
    animation: crmFormIn 0.32s ease both;
}

@keyframes crmFormIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    margin-bottom: 0.9rem;
    text-align: center;
}

.auth-logo-company {
    width: 74px;
    height: 74px;
    margin: 0 auto 0.68rem;
    border-radius: 23px;
    display: grid;
    place-items: center;
    background: var(--crm-white);
    border: 1px solid var(--crm-slate-200);
    box-shadow:
        10px 10px 24px rgba(15, 23, 42, 0.10),
        -9px -9px 20px rgba(255, 255, 255, 0.88),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.auth-logo-company img {
    display: block;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
}

.auth-nip-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 0.68rem;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: var(--crm-blue);
    font-size: 1.9rem;
    background: linear-gradient(145deg, #ffffff, #fef3c7);
    border: 1px solid #fde68a;
    box-shadow:
        10px 10px 24px rgba(15, 23, 42, 0.10),
        -9px -9px 20px rgba(255, 255, 255, 0.88),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.auth-kicker {
    display: inline-block;
    color: var(--crm-blue);
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.auth-header h2 {
    margin: 0.16rem 0 0;
    color: var(--crm-slate-900);
    font-size: clamp(1.68rem, 2.5vw, 2rem);
    font-weight: 950;
    letter-spacing: -0.055em;
}

.auth-header p {
    max-width: 31ch;
    margin: 0.32rem auto 0;
    color: var(--crm-slate-500);
    font-size: 0.88rem;
    line-height: 1.42;
}

.form-group-auth {
    position: relative;
    margin-bottom: 0.74rem;
}

.form-label-auth {
    display: block;
    margin: 0 0 0.34rem 0.1rem;
    color: var(--crm-slate-700);
    font-size: 0.8rem;
    font-weight: 900;
}

.input-auth {
    position: relative;
    display: flex;
    align-items: center;
}

.input-auth-icon {
    position: absolute;
    left: 0.92rem;
    z-index: 2;
    color: var(--crm-slate-500);
    transition: color var(--transition), transform var(--transition);
}

.input-auth .form-control {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid var(--crm-slate-200);
    background: var(--crm-slate-50);
    color: var(--crm-slate-900);
    font-weight: 700;
    padding: 0.72rem 1rem 0.72rem 2.75rem;
    box-shadow: none;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.input-auth .form-control::placeholder {
    color: var(--crm-slate-400);
    font-weight: 600;
}

.input-auth .form-control:focus {
    background: var(--crm-white);
    border-color: rgba(37, 99, 235, 0.52);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.12),
        0 14px 28px rgba(15, 23, 42, 0.08);
}

.input-auth:focus-within .input-auth-icon {
    color: var(--crm-blue);
    transform: scale(1.08);
}

.input-auth-password .form-control {
    padding-right: 3.15rem;
}

.btn-password-toggle {
    position: absolute;
    right: 0.4rem;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--crm-slate-500);
    background: transparent;
    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.btn-password-toggle:hover {
    background: #dbeafe;
    color: var(--crm-blue);
    transform: scale(1.04);
}

.auth-helper-box {
    margin: 0.1rem 0 0.78rem;
    padding: 0.66rem 0.76rem;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 0.52rem;
    color: var(--crm-slate-500);
    background: #eff6ff;
    border: 1px solid #dbeafe;
    font-size: 0.78rem;
    line-height: 1.35;
}

.auth-helper-box i {
    margin-top: 0.14rem;
    color: var(--crm-blue);
}

.auth-helper-warning {
    background: var(--crm-amber-soft);
    border-color: #fed7aa;
}

.auth-helper-warning i {
    color: var(--crm-amber);
}

/* =========================================================
   BOTONES
========================================================= */

.btn-auth-primary {
    position: relative;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    color: var(--crm-white);
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.52rem;
    background: linear-gradient(135deg, var(--crm-blue), var(--crm-cyan));
    box-shadow:
        var(--shadow-button),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transition:
        transform var(--transition),
        filter var(--transition),
        box-shadow var(--transition);
}

.btn-auth-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.30), transparent);
    transform: translateX(-120%);
    animation: crmButtonShine 3.2s ease-in-out infinite;
}

@keyframes crmButtonShine {
    0% {
        transform: translateX(-120%);
    }

    45%,
    100% {
        transform: translateX(120%);
    }
}

.btn-auth-primary:hover {
    color: var(--crm-white);
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        0 23px 44px rgba(37, 99, 235, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-auth-primary:disabled {
    opacity: 0.78;
    cursor: not-allowed;
    transform: none;
}

.btn-label,
.btn-loader,
.btn-icon-end {
    position: relative;
    z-index: 2;
}

/* =========================================================
   NIP
========================================================= */

.nip-input {
    width: 100%;
    min-height: 56px;
    border-radius: 17px;
    border: 1px solid var(--crm-slate-200);
    background: var(--crm-slate-50);
    text-align: center;
    color: var(--crm-slate-900);
    font-size: 1.48rem;
    font-weight: 950;
    letter-spacing: 0.28rem;
    padding: 0.55rem 0.7rem 0.55rem 1rem;
    box-shadow: none;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.nip-input:focus {
    background: var(--crm-white);
    border-color: rgba(37, 99, 235, 0.52);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.12),
        0 14px 28px rgba(15, 23, 42, 0.08);
}

.nip-actions {
    margin-top: 0.72rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.62rem;
}

.btn-auth-secondary {
    min-height: 42px;
    border: 1px solid var(--crm-slate-200);
    border-radius: 14px;
    background: var(--crm-white);
    color: var(--crm-blue);
    font-size: 0.78rem;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.btn-auth-secondary:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.10);
}

/* =========================================================
   FOOTER
========================================================= */

.crm-footer {
    flex: 0 0 auto;
    padding: 0.65rem 1rem 0.8rem;
    color: var(--crm-slate-500);
    text-align: center;
    font-size: 0.7rem;
}

/* =========================================================
   VALIDACIONES
========================================================= */

.form-control.is-invalid,
.input-auth .form-control.is-invalid,
.nip-input.is-invalid {
    border-color: var(--crm-danger) !important;
    background: var(--crm-danger-soft) !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}

.field-has-error .form-label-auth,
.field-has-error .input-auth-icon {
    color: var(--crm-danger);
}

.auth-invalid-message {
    margin-top: 0.32rem;
    color: var(--crm-danger);
    font-size: 0.74rem;
    font-weight: 850;
    animation: crmErrorShake 0.22s ease both;
}

@keyframes crmErrorShake {
    0% {
        transform: translateX(0);
    }

    35% {
        transform: translateX(-3px);
    }

    70% {
        transform: translateX(3px);
    }

    100% {
        transform: translateX(0);
    }
}

/* =========================================================
   SWEETALERT
========================================================= */

.swal-login-popup {
    border-radius: 24px !important;
}

.swal-login-confirm {
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--crm-blue), var(--crm-cyan)) !important;
    font-weight: 900 !important;
}

.swal-login-cancel {
    border-radius: 14px !important;
    font-weight: 900 !important;
}

/* =========================================================
   NOSCRIPT
========================================================= */

.noscript-message {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    padding: 1rem;
    border-radius: 18px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-weight: 900;
    text-align: center;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
    .crm-login-shell {
        grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.82fr);
    }

    .crm-showcase h1 {
        font-size: 3.45rem;
    }
}

@media (max-width: 940px) {
    .crm-login-page {
        align-items: flex-start;
        padding: 0.85rem;
    }

    .crm-login-shell {
        width: min(540px, 100%);
        height: auto;
        min-height: auto;
        max-height: none;
        grid-template-columns: 1fr;
        border-radius: 28px;
    }

    .crm-showcase {
        display: none;
    }

    .crm-auth-panel {
        min-height: auto;
    }

    .crm-auth-scroll {
        display: block;
        overflow: visible;
    }

    .crm-auth-inner {
        width: 100%;
        padding: 1rem;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 0.82rem;
        margin-bottom: 0.95rem;
    }

    .mobile-logo-box {
        width: 56px;
        height: 56px;
        border-radius: 18px;
        display: grid;
        place-items: center;
        background: var(--crm-white);
        border: 1px solid var(--crm-slate-200);
        box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
    }

    .mobile-logo-box img {
        max-width: 42px;
        max-height: 42px;
        object-fit: contain;
    }

    .mobile-brand span {
        display: block;
        color: var(--crm-slate-500);
        font-size: 0.72rem;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.09em;
    }

    .mobile-brand strong {
        display: block;
        color: var(--crm-slate-900);
        font-size: 1.05rem;
        letter-spacing: -0.03em;
    }
}

@media (max-width: 520px) {
    .crm-login-page {
        padding: 0.65rem;
    }

    .crm-login-shell {
        border-radius: 24px;
    }

    .crm-auth-card {
        padding: 0.9rem;
        border-radius: 24px;
    }

    .crm-steps {
        grid-template-columns: 1fr;
        gap: 0.52rem;
    }

    .crm-step-line {
        display: none;
    }

    .crm-step small {
        white-space: normal;
    }

    .auth-logo-company,
    .auth-nip-icon {
        width: 62px;
        height: 62px;
        border-radius: 21px;
    }

    .auth-logo-company img {
        max-width: 48px;
        max-height: 48px;
    }

    .auth-header h2 {
        font-size: 1.58rem;
    }

    .auth-header p {
        font-size: 0.85rem;
    }

    .input-auth .form-control {
        min-height: 52px;
    }

    .nip-actions {
        grid-template-columns: 1fr;
    }

    .nip-input {
        letter-spacing: 0.2rem;
        font-size: 1.32rem;
    }

    .crm-footer {
        font-size: 0.66rem;
    }
}

@media (max-height: 720px) and (min-width: 941px) {
    .crm-login-shell {
        min-height: calc(100dvh - 36px);
    }

    .company-logo-card {
        width: 92px;
        height: 92px;
        border-radius: 26px;
        margin-bottom: 0.9rem;
    }

    .company-logo {
        max-width: 70px;
        max-height: 70px;
    }

    .crm-showcase h1 {
        font-size: 3.28rem;
    }

    .crm-showcase p {
        margin-top: 0.72rem;
        font-size: 0.92rem;
    }

    .crm-feature-card {
        margin-top: 0.95rem;
        padding: 0.78rem;
    }

    .crm-feature-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .crm-auth-card {
        padding: 0.85rem;
    }

    .crm-steps {
        margin-bottom: 0.64rem;
        padding: 0.55rem;
    }

    .auth-header {
        margin-bottom: 0.64rem;
    }

    .auth-logo-company,
    .auth-nip-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 0.48rem;
    }

    .auth-logo-company img {
        max-width: 42px;
        max-height: 42px;
    }

    .auth-header h2 {
        font-size: 1.54rem;
    }

    .auth-header p {
        font-size: 0.8rem;
    }

    .form-group-auth {
        margin-bottom: 0.54rem;
    }

    .form-label-auth {
        margin-bottom: 0.25rem;
    }

    .input-auth .form-control {
        min-height: 45px;
    }

    .auth-helper-box {
        margin-bottom: 0.54rem;
        padding: 0.55rem 0.65rem;
    }

    .btn-auth-primary {
        min-height: 46px;
    }

    .crm-footer {
        padding: 0.5rem 1rem 0.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}