/* CRMbusiness · Login limpio ajustado R3.5.1 */

body.guest-body-clean-r351 {
    min-height: 100vh !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    background:
        radial-gradient(circle at 6% 7%, rgba(80, 193, 244, .24), transparent 27%),
        radial-gradient(circle at 93% 88%, rgba(61, 159, 218, .16), transparent 26%),
        linear-gradient(135deg, #eefaff 0%, #f8fcff 48%, #e4f5ff 100%) !important;
    color: #092f4e !important;
}

.guest-body-clean-r351 .clean-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 2.4vw, 34px);
    box-sizing: border-box;
}

.guest-body-clean-r351 .clean-login-shell {
    width: min(1360px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
    gap: clamp(26px, 3.2vw, 48px);
    align-items: center;
}

.guest-body-clean-r351 .clean-login-showcase {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: min(640px, calc(100vh - 72px));
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: clamp(36px, 5.2vw, 72px);
    border: 1px solid rgba(61, 151, 209, .08);
    border-radius: 34px;
    background: linear-gradient(140deg, rgba(255,255,255,.38), rgba(236,248,255,.70));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.guest-body-clean-r351 .clean-login-decoration {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.guest-body-clean-r351 .clean-login-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
}

.guest-body-clean-r351 .clean-login-orb--one {
    width: clamp(190px, 20vw, 300px);
    height: clamp(190px, 20vw, 300px);
    top: -6%;
    left: -5%;
    background: radial-gradient(circle, rgba(90,196,243,.22), rgba(90,196,243,.03) 70%, transparent 72%);
}

.guest-body-clean-r351 .clean-login-orb--two {
    width: clamp(220px, 23vw, 340px);
    height: clamp(220px, 23vw, 340px);
    right: 9%;
    top: 34%;
    background: radial-gradient(circle, rgba(76,152,212,.10), rgba(76,152,212,.02) 68%, transparent 71%);
}

.guest-body-clean-r351 .clean-login-orb--three {
    width: clamp(230px, 24vw, 360px);
    height: clamp(230px, 24vw, 360px);
    left: 11%;
    bottom: -13%;
    background: radial-gradient(circle, rgba(77,163,222,.11), rgba(77,163,222,.02) 70%, transparent 73%);
}

.guest-body-clean-r351 .clean-login-copy {
    width: min(600px, 100%);
    margin-inline: auto;
}

.guest-body-clean-r351 .clean-login-eyebrow {
    margin: 0 0 18px;
    color: #08679d;
    font-size: clamp(.78rem, .92vw, .90rem);
    font-weight: 900;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.guest-body-clean-r351 .clean-login-copy h1 {
    margin: 0;
    color: #073451;
    font-size: clamp(3.3rem, 5.8vw, 5.8rem);
    font-weight: 950;
    line-height: .92;
    letter-spacing: -.06em;
    text-wrap: balance;
}

.guest-body-clean-r351 .clean-login-description {
    max-width: 560px;
    margin: 24px 0 0;
    color: #5a748c;
    font-size: clamp(1rem, 1.15vw, 1.16rem);
    line-height: 1.7;
}

.guest-body-clean-r351 .clean-login-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.guest-body-clean-r351 .clean-login-pills span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(14,112,169,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.74);
    color: #075f93;
    font-size: .84rem;
    font-weight: 850;
    box-shadow: 0 10px 22px rgba(6,78,127,.06);
}

.guest-body-clean-r351 .clean-login-form-side {
    min-width: 0;
    display: grid;
    place-items: center;
}

.guest-body-clean-r351 .clean-login-form-wrap {
    width: 100%;
    max-width: 500px;
}

.guest-body-clean-r351 .auth-card-final {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: clamp(26px, 2.6vw, 36px) clamp(24px, 2.4vw, 34px) clamp(24px, 2.4vw, 30px) !important;
    border: 1px solid rgba(48,132,187,.10) !important;
    border-radius: 30px !important;
    background: rgba(255,255,255,.90) !important;
    box-shadow: 0 20px 48px rgba(8,71,115,.14) !important;
    backdrop-filter: blur(14px) !important;
}

.guest-body-clean-r351 .auth-card-header {
    margin-bottom: 22px !important;
}

.guest-body-clean-r351 .auth-card-header .eyebrow {
    margin: 0 0 10px !important;
    color: #5d7386 !important;
    font-size: .8rem !important;
    font-weight: 900 !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
}

.guest-body-clean-r351 .auth-card-header h2 {
    margin: 0 !important;
    color: #073451 !important;
    font-size: clamp(2rem, 2.4vw, 2.6rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.042em !important;
}

.guest-body-clean-r351 .auth-card-header p:last-child {
    margin: 14px 0 0 !important;
    color: #627a91 !important;
    font-size: .98rem !important;
    line-height: 1.58 !important;
}

.guest-body-clean-r351 .auth-form {
    display: grid !important;
    gap: 18px !important;
}

.guest-body-clean-r351 .form-group {
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
}

.guest-body-clean-r351 .form-group label {
    color: #183248 !important;
    font-size: .98rem !important;
    font-weight: 850 !important;
}

.guest-body-clean-r351 .form-group input {
    width: 100% !important;
    min-height: 58px !important;
    box-sizing: border-box !important;
    padding: 0 18px !important;
    border: 1px solid #d6e5f0 !important;
    border-radius: 17px !important;
    background: rgba(251,253,255,.95) !important;
    color: #153149 !important;
    font-size: 1rem !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85) !important;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.guest-body-clean-r351 .form-group input:focus {
    outline: none !important;
    border-color: #75b7de !important;
    background: #fff !important;
    box-shadow: 0 0 0 5px rgba(73,165,219,.15) !important;
}

.guest-body-clean-r351 .auth-row-final {
    display: grid !important;
    grid-template-columns: minmax(150px, .92fr) minmax(180px, 1.08fr) !important;
    gap: 16px !important;
    align-items: start !important;
    margin: 2px 0 0 !important;
}

.guest-body-clean-r351 .checkbox-inline {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    color: #61778d !important;
    font-size: .93rem !important;
    font-weight: 750 !important;
    line-height: 1.42 !important;
}

.guest-body-clean-r351 .checkbox-inline input {
    width: 17px !important;
    height: 17px !important;
    margin-top: 2px !important;
    flex: 0 0 17px !important;
}

.guest-body-clean-r351 .auth-support-text {
    color: #083e66 !important;
    font-size: .91rem !important;
    font-weight: 850 !important;
    line-height: 1.42 !important;
    text-decoration: none !important;
}

.guest-body-clean-r351 .portal-login-shortcut {
    margin: 0 !important;
    text-align: center !important;
}

.guest-body-clean-r351 .portal-login-shortcut a {
    color: #037ab5 !important;
    font-size: .98rem !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.guest-body-clean-r351 .btn.btn-primary.btn-block {
    width: 100% !important;
    min-height: 60px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #1d78b2, #0b5b91) !important;
    color: #fff !important;
    font-size: 1.02rem !important;
    font-weight: 900 !important;
    box-shadow: 0 14px 26px rgba(9,91,145,.20) !important;
}

.guest-body-clean-r351 .btn.btn-primary.btn-block:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 18px 30px rgba(9,91,145,.24) !important;
}

.guest-body-clean-r351 .auth-footer-note-final {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-top: 18px !important;
}

.guest-body-clean-r351 .auth-footer-note-final > div {
    padding: 11px 13px !important;
    border: 1px solid rgba(57,139,190,.10) !important;
    border-radius: 14px !important;
    background: rgba(243,249,253,.88) !important;
}

.guest-body-clean-r351 .auth-footer-note-final strong,
.guest-body-clean-r351 .auth-footer-note-final span {
    display: block !important;
}

.guest-body-clean-r351 .auth-footer-note-final strong {
    color: #174363 !important;
    font-size: .82rem !important;
}

.guest-body-clean-r351 .auth-footer-note-final span {
    margin-top: 4px !important;
    color: #72869a !important;
    font-size: .75rem !important;
    line-height: 1.33 !important;
}

@media (max-width: 1180px) {
    .guest-body-clean-r351 .clean-login-shell {
        grid-template-columns: minmax(0, 1fr) minmax(370px, 460px);
        gap: 26px;
    }
    .guest-body-clean-r351 .clean-login-showcase { padding: 44px; min-height: min(580px, calc(100vh - 58px)); }
    .guest-body-clean-r351 .clean-login-copy h1 { font-size: clamp(3rem, 6vw, 4.9rem); }
}

@media (max-width: 920px) {
    .guest-body-clean-r351 .clean-login-page { padding: 18px; }
    .guest-body-clean-r351 .clean-login-shell {
        width: min(720px, 100%);
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .guest-body-clean-r351 .clean-login-showcase {
        min-height: auto;
        padding: 38px 30px;
        border-radius: 28px;
    }
    .guest-body-clean-r351 .clean-login-copy { text-align: center; }
    .guest-body-clean-r351 .clean-login-eyebrow { margin-bottom: 14px; }
    .guest-body-clean-r351 .clean-login-copy h1 { font-size: clamp(2.8rem, 9vw, 4.3rem); }
    .guest-body-clean-r351 .clean-login-description { max-width: 560px; margin: 18px auto 0; }
    .guest-body-clean-r351 .clean-login-pills { justify-content: center; }
}

@media (max-width: 560px) {
    .guest-body-clean-r351 .clean-login-page { padding: 10px; }
    .guest-body-clean-r351 .clean-login-showcase {
        padding: 28px 18px;
        border-radius: 22px;
    }
    .guest-body-clean-r351 .clean-login-copy h1 { font-size: clamp(2.35rem, 13vw, 3.5rem); }
    .guest-body-clean-r351 .clean-login-description { font-size: .98rem; line-height: 1.56; }
    .guest-body-clean-r351 .auth-card-final {
        padding: 24px 18px 20px !important;
        border-radius: 22px !important;
    }
    .guest-body-clean-r351 .auth-card-header h2 { font-size: 1.92rem !important; }
    .guest-body-clean-r351 .form-group input { min-height: 54px !important; }
    .guest-body-clean-r351 .auth-row-final,
    .guest-body-clean-r351 .auth-footer-note-final { grid-template-columns: 1fr !important; }
    .guest-body-clean-r351 .btn.btn-primary.btn-block { min-height: 56px !important; }
}


/* CRMbusiness · Identidad Azul Diagnostic en login R3 */
.guest-body-login-brand-r3 .clean-login-page {
    position: relative;
    padding-top: clamp(78px, 8vw, 112px);
}

.guest-body-login-brand-r3 .clean-login-corner-brand {
    position: absolute;
    top: clamp(18px, 2vw, 30px);
    left: clamp(18px, 2.2vw, 34px);
    z-index: 4;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.guest-body-login-brand-r3 .clean-login-corner-brand img {
    display: block;
    width: clamp(118px, 9.2vw, 154px);
    height: auto;
    max-height: 82px;
    object-fit: contain;
    object-position: left center;
}

/* El panel izquierdo se integra al fondo: sin marco, borde ni halo. */
.guest-body-login-brand-r3 .clean-login-showcase {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.guest-body-login-brand-r3 .clean-login-copy h1 {
    text-shadow: none;
    filter: none;
}

.guest-body-login-brand-r3 .clean-login-decoration {
    opacity: .72;
}

@media (max-width: 920px) {
    .guest-body-login-brand-r3 .clean-login-page {
        padding-top: 84px;
    }

    .guest-body-login-brand-r3 .clean-login-corner-brand {
        top: 16px;
        left: 18px;
    }

    .guest-body-login-brand-r3 .clean-login-corner-brand img {
        width: clamp(108px, 20vw, 136px);
    }

    .guest-body-login-brand-r3 .clean-login-showcase {
        padding-top: 28px;
    }
}

@media (max-width: 560px) {
    .guest-body-login-brand-r3 .clean-login-page {
        padding-top: 74px;
    }

    .guest-body-login-brand-r3 .clean-login-corner-brand {
        top: 12px;
        left: 14px;
    }

    .guest-body-login-brand-r3 .clean-login-corner-brand img {
        width: 108px;
    }
}

/* CRMbusiness · Login sin desplazamiento vertical R4 */
@media (min-width: 921px) {
    body.guest-body-clean-r351.guest-body-login-brand-r3 {
        width: 100%;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .guest-body-login-brand-r3 .clean-login-page {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding: clamp(14px, 1.7vw, 26px) clamp(18px, 2.4vw, 36px);
        overflow: hidden;
    }

    .guest-body-login-brand-r3 .clean-login-shell {
        width: min(1360px, 100%);
        height: min(760px, calc(100dvh - clamp(28px, 3.4vw, 52px)));
        max-height: 100%;
        align-items: stretch;
    }

    .guest-body-login-brand-r3 .clean-login-showcase,
    .guest-body-login-brand-r3 .clean-login-form-side {
        min-height: 0;
        height: 100%;
    }

    .guest-body-login-brand-r3 .clean-login-form-side {
        align-content: center;
    }

    .guest-body-login-brand-r3 .clean-login-form-wrap,
    .guest-body-login-brand-r3 .auth-card-final {
        max-height: 100%;
    }
}

/* Compactación automática para monitores con poca altura. */
@media (min-width: 921px) and (max-height: 760px) {
    .guest-body-login-brand-r3 .clean-login-shell {
        height: calc(100dvh - 24px);
    }

    .guest-body-login-brand-r3 .clean-login-corner-brand {
        top: 10px;
        left: 18px;
    }

    .guest-body-login-brand-r3 .clean-login-corner-brand img {
        width: 112px;
        max-height: 64px;
    }

    .guest-body-login-brand-r3 .clean-login-copy h1 {
        font-size: clamp(3rem, 5vw, 4.7rem);
    }

    .guest-body-login-brand-r3 .clean-login-description {
        margin-top: 18px;
        line-height: 1.55;
    }

    .guest-body-login-brand-r3 .auth-card-final {
        padding: 22px 26px 20px !important;
    }

    .guest-body-login-brand-r3 .auth-card-header {
        margin-bottom: 16px !important;
    }

    .guest-body-login-brand-r3 .auth-card-header h2 {
        font-size: 2rem !important;
    }

    .guest-body-login-brand-r3 .auth-card-header p:last-child {
        margin-top: 10px !important;
    }

    .guest-body-login-brand-r3 .auth-form {
        gap: 13px !important;
    }

    .guest-body-login-brand-r3 .form-group input {
        min-height: 50px !important;
    }

    .guest-body-login-brand-r3 .btn.btn-primary.btn-block {
        min-height: 52px !important;
    }
}

/* En tablet y móvil se conserva el flujo responsivo para evitar recortes. */
@media (max-width: 920px) {
    body.guest-body-clean-r351.guest-body-login-brand-r3 {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
}
