/* MedTech MSO login page: split layout with a large form on the left and an animated
   product panel on the right. Uses the landing fonts and the shared --mso-* tokens. */

body.mso-site .mso-page:has(> .mso-auth) {
    min-height: 0;
    padding: 0;
    background: var(--mso-surface);
}

.mso-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    min-height: calc(100vh - 118px);
}

/* ---------- Form side ---------- */
.mso-auth-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 72px);
    background: radial-gradient(520px 320px at 0% 0%, var(--mso-brand-50) 0%, rgba(238, 243, 255, 0) 70%), var(--mso-surface);
}

.mso-auth-inner {
    width: 100%;
    max-width: 500px;
    animation: mso-auth-in .7s cubic-bezier(.2, .7, .2, 1) both;
}

.mso-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--mso-brand-50);
    color: var(--mso-brand);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
}

body.mso-site .mso-auth-title {
    margin: 22px 0 14px;
    color: var(--mso-ink);
    font-family: var(--l-display);
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
}

    body.mso-site .mso-auth-title span {
        background: var(--mso-g-text, linear-gradient(100deg, #0244FC, #00AFFE));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.mso-auth-lead {
    margin: 0 0 34px;
    color: var(--mso-muted);
    font-size: 18px;
    line-height: 1.55;
}

.mso-auth-fields {
    display: grid;
    gap: 22px;
}

.mso-auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid rgba(217, 48, 54, .25);
    border-radius: 14px;
    background: var(--mso-danger-50);
    color: var(--mso-danger);
    font-size: 15px;
    font-weight: 700;
    animation: mso-auth-shake .45s ease both;
}

.mso-auth-field label {
    display: block;
    margin-bottom: 10px;
    color: var(--mso-ink);
    font-size: 15px;
    font-weight: 700;
}

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

    .mso-auth-input > i {
        position: absolute;
        left: 22px;
        color: var(--mso-subtle);
        font-size: 18px;
        pointer-events: none;
        transition: color .2s ease;
    }

    .mso-auth-input input {
        width: 100%;
        height: 66px;
        padding: 0 60px 0 56px;
        border: 2px solid var(--mso-line);
        border-radius: 16px;
        background: var(--mso-app);
        color: var(--mso-ink);
        font-family: inherit;
        font-size: 18px;
        font-weight: 600;
        outline: none;
        transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    }

        .mso-auth-input input::placeholder {
            color: var(--mso-subtle);
            font-weight: 500;
        }

        .mso-auth-input input:hover {
            border-color: var(--mso-line-strong);
        }

        .mso-auth-input input:focus {
            border-color: var(--mso-brand);
            background: var(--mso-surface);
            box-shadow: 0 0 0 5px rgba(2, 68, 252, .14);
        }

    .mso-auth-input:focus-within > i {
        color: var(--mso-brand);
    }

.mso-auth-eye {
    position: absolute;
    right: 10px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--mso-muted);
    font-size: 18px;
    cursor: pointer;
}

    .mso-auth-eye:hover, .mso-auth-eye:focus-visible {
        background: var(--mso-brand-50);
        color: var(--mso-brand);
        outline: none;
    }

.mso-auth-error, .mso-auth-caps {
    display: block;
    margin: 8px 0 0;
    color: var(--mso-danger);
    font-size: 14px;
    font-weight: 600;
}

.mso-auth-caps {
    color: var(--mso-warning);
}

    .mso-auth-caps i {
        margin-right: 6px;
    }

.mso-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--mso-text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

    .mso-auth-check input {
        width: 22px;
        height: 22px;
        accent-color: var(--mso-brand);
        cursor: pointer;
    }

/* The main call to action: large, gradient, with a moving sheen */
.mso-auth-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 68px;
    margin-top: 6px;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(100deg, #0244FC 0%, #0A5BFF 55%, #00AFFE 100%);
    background-size: 160% 100%;
    color: #fff;
    font-family: var(--l-display);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.01em;
    box-shadow: 0 18px 36px -12px rgba(2, 68, 252, .6);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-position .4s ease;
}

    .mso-auth-btn::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
        transform: translateX(-120%);
        animation: mso-auth-sheen 3.6s ease-in-out 1.2s infinite;
    }

    .mso-auth-btn i {
        transition: transform .2s ease;
    }

    .mso-auth-btn:hover {
        background-position: 100% 0;
        box-shadow: 0 24px 44px -12px rgba(2, 68, 252, .7);
        transform: translateY(-2px);
    }

        .mso-auth-btn:hover i {
            transform: translateX(5px);
        }

    .mso-auth-btn:active {
        transform: translateY(0);
    }

    .mso-auth-btn:focus-visible {
        outline: 4px solid rgba(2, 68, 252, .35);
        outline-offset: 3px;
    }

    .mso-auth-btn.is-loading {
        cursor: progress;
        opacity: .9;
    }

.mso-auth-spin {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mso-auth-rotate .8s linear infinite;
}

.mso-auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    border: 2px solid var(--mso-line);
    border-radius: 16px;
    color: var(--mso-ink);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

    .mso-auth-back:hover {
        border-color: var(--mso-brand);
        color: var(--mso-brand);
    }

.mso-auth-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
    color: var(--mso-muted);
    font-size: 15px;
}

    .mso-auth-note i {
        color: var(--mso-success);
    }

/* ---------- Visual side ---------- */
.mso-auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    overflow: hidden;
    padding: clamp(40px, 5vw, 72px);
    background: radial-gradient(700px 500px at 100% 100%, rgba(0, 175, 254, .35) 0%, rgba(0, 175, 254, 0) 60%), linear-gradient(150deg, #04133E 0%, #0A2257 45%, #0A2A8A 100%);
    color: #fff;
}

.mso-auth-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    pointer-events: none;
}

.mso-auth-ring-1 {
    width: 620px;
    height: 620px;
    top: -260px;
    right: -200px;
    border-style: dashed;
    animation: mso-auth-rotate 60s linear infinite;
}

.mso-auth-ring-2 {
    width: 420px;
    height: 420px;
    bottom: -180px;
    left: -140px;
    border-color: rgba(7, 236, 239, .22);
    animation: mso-auth-rotate 40s linear infinite reverse;
}

    .mso-auth-ring-1::after, .mso-auth-ring-2::after {
        content: "";
        position: absolute;
        top: 50%;
        left: -6px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--mso-cyan);
        box-shadow: 0 0 18px var(--mso-cyan);
    }

.mso-auth-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    top: 18%;
    left: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 68, 252, .55) 0%, rgba(2, 68, 252, 0) 70%);
    filter: blur(20px);
    animation: mso-auth-pulse 6s ease-in-out infinite;
    pointer-events: none;
}

.mso-auth-copy {
    position: relative;
    z-index: 2;
}

.mso-auth-eyebrow {
    margin: 0 0 12px;
    color: var(--mso-cyan);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.mso-site .mso-auth-copy h2 {
    margin: 0;
    color: #fff;
    font-family: var(--l-display);
    font-size: clamp(34px, 3.4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
}

/* Rotating words: each one slides up in turn */
.mso-auth-words {
    position: relative;
    display: block;
    height: 1.15em;
    overflow: hidden;
}

    .mso-auth-words span {
        position: absolute;
        left: 0;
        top: 0;
        background: linear-gradient(100deg, #00AFFE 0%, #07ECEF 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        white-space: nowrap;
        opacity: 0;
        transform: translateY(100%);
        animation: mso-auth-word 10s cubic-bezier(.2, .7, .2, 1) infinite;
    }

        .mso-auth-words span:nth-child(2) { animation-delay: 2.5s; }
        .mso-auth-words span:nth-child(3) { animation-delay: 5s; }
        .mso-auth-words span:nth-child(4) { animation-delay: 7.5s; }

.mso-auth-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    perspective: 1400px;
}

.mso-auth-screen {
    display: block;
    width: 88%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .55);
    transform: rotateY(-14deg) rotateX(6deg);
    transform-origin: left center;
    animation: mso-auth-float 8s ease-in-out infinite;
}

.mso-auth-phone {
    position: absolute;
    right: 0;
    bottom: -14%;
    width: 30%;
    height: auto;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5));
    animation: mso-auth-float 7s ease-in-out -2s infinite;
}

.mso-auth-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    color: var(--mso-ink);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
    backdrop-filter: blur(8px);
}

    .mso-auth-chip i {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: var(--mso-brand);
        color: #fff;
        font-size: 18px;
    }

    .mso-auth-chip b {
        display: block;
        font-family: var(--l-display);
        font-size: 20px;
        line-height: 1.1;
    }

    .mso-auth-chip small {
        color: var(--mso-muted);
        font-size: 13px;
        font-weight: 600;
    }

.mso-auth-chip-1 {
    top: -6%;
    left: -4%;
    animation: mso-auth-bob 6s ease-in-out infinite;
}

.mso-auth-chip-2 {
    top: 40%;
    right: -2%;
    animation: mso-auth-bob 6s ease-in-out -2s infinite;
}

    .mso-auth-chip-2 i {
        background: var(--mso-cyan);
        color: var(--mso-navy);
    }

.mso-auth-chip-3 {
    bottom: -10%;
    left: 6%;
    animation: mso-auth-bob 6s ease-in-out -4s infinite;
}

    .mso-auth-chip-3 i {
        background: var(--mso-success);
    }

/* ---------- Animations ---------- */
@keyframes mso-auth-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@keyframes mso-auth-shake {
    0%, 100% { transform: none; }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@keyframes mso-auth-sheen {
    0% { transform: translateX(-120%); }
    45%, 100% { transform: translateX(120%); }
}

@keyframes mso-auth-rotate {
    to { transform: rotate(360deg); }
}

@keyframes mso-auth-pulse {
    0%, 100% { opacity: .7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes mso-auth-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; }
}

@keyframes mso-auth-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes mso-auth-word {
    0% { opacity: 0; transform: translateY(100%); }
    4%, 22% { opacity: 1; transform: none; }
    26%, 100% { opacity: 0; transform: translateY(-100%); }
}

/* ---------- iPad and phones ---------- */
@media (max-width: 1100px) {
    .mso-auth-chip-1 { left: 0; }
    .mso-auth-chip-2 { right: 0; }
}

@media (max-width: 991.98px) {
    .mso-auth {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .mso-auth-inner {
        max-width: 560px;
    }

    .mso-auth-visual {
        padding: 56px clamp(20px, 6vw, 56px) 96px;
    }

    .mso-auth-copy {
        text-align: center;
    }

    .mso-auth-words span {
        left: 50%;
        transform: translate(-50%, 100%);
        animation-name: mso-auth-word-c;
    }

    .mso-auth-stage {
        max-width: 560px;
    }

    @keyframes mso-auth-word-c {
        0% { opacity: 0; transform: translate(-50%, 100%); }
        4%, 22% { opacity: 1; transform: translate(-50%, 0); }
        26%, 100% { opacity: 0; transform: translate(-50%, -100%); }
    }
}

@media (max-width: 600px) {
    .mso-auth-chip-2, .mso-auth-phone {
        display: none;
    }

    .mso-auth-screen {
        width: 100%;
        transform: none;
    }

    .mso-auth-chip {
        padding: 8px 14px 8px 8px;
    }

        .mso-auth-chip i {
            width: 34px;
            height: 34px;
            font-size: 15px;
        }

        .mso-auth-chip b {
            font-size: 16px;
        }
}

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

    .mso-auth-words span {
        opacity: 0;
    }

        .mso-auth-words span:first-child {
            opacity: 1;
            transform: none;
        }
}

@media (prefers-reduced-motion: reduce) and (max-width: 991.98px) {
    .mso-auth-words span:first-child {
        transform: translateX(-50%);
    }
}
