
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: #101d38;
}

body {
    background: #f4fbff;
}

/* MAIN LAYOUT */

.layout {
    display: grid;
    grid-template-columns: 50% 50%;
    min-height: 100dvh;
}

/* LEFT PROMOTIONAL SECTION */

.promo {
    background:
        linear-gradient(90deg, #ffffffc4, #ffffff5e),
        radial-gradient(circle at 15% 85%, #b9e7d9, transparent 52%),
        #effaff;
    position: relative;
    overflow: hidden;
}

.promo:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        #f6fdffdd,
        #ffffff22 45%,
        #d9f7e638
    );
    pointer-events: none;
}

.promo-inner {
    position: relative;
    max-width: 1050px;
    height: 100%;
    margin: auto;
    padding: clamp(15px, 2.2vh, 30px) clamp(20px, 4vw, 76px);
    display: flex;
    flex-direction: column;
}

/* BRAND */

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
}

.brand strong {
    display: block;
    font-size: clamp(25px, 2.4vw, 36px);
    letter-spacing: -.05em;
}

.brand span {
    font-size: 14px;
    color: #53657f;
}

/* HERO */

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.eyebrow {
    align-self: flex-start;
    background: #d6f8e9;
    color: #009a67;
    border-radius: 25px;
    padding: 7px 15px;
    font-size: 12px;
    font-weight: 800;
    margin: 6px 0 12px;
}

h1 {
    font-size: clamp(29px, 2.5vw, 43px);
    line-height: 1.1;
    letter-spacing: -.045em;
    margin: 0 0 12px;
}

.blue {
    color: #0782d3;
}

.green {
    color: #08ae78;
}

.tagline {
    font-size: clamp(13px, 1.05vw, 17px);
    color: #50627d;
    margin: 0 0 12px;
}

/* PRODUCT IMAGE AREA */

.device-wrap {
    flex: 0 1 auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 40px #264d6422;
}

.devices {
    display: block;
    width: 100%;
    height: clamp(230px, 42vh, 470px);
    object-fit: cover;
    object-position: center 53%;
}

/* FEATURE CARDS AND PRICING */

.promo-bottom {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr))
        minmax(145px, 1.4fr);
    gap: 7px;
    margin-top: 12px;
}

.feature {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    background: #ffffffc9;
    padding: 8px 3px;
    box-shadow: 0 3px 16px #173b510a;
}

.feature-icon {
    color: #0782d3;
    font-size: 23px;
    font-weight: 900;
}

.feature-icon.green {
    color: #10b981;
}

.feature-icon.gold {
    color: #e9a800;
}

.feature-icon.pharmacy {
    color: #8b5cf6;
}

.feature b {
    font-size: 11px;
    line-height: 1.25;
}

.feature small {
    font-size: 10px;
    color: #65758c;
    margin-top: 4px;
}

/* PRICE CARD */

.price {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(120deg, #05a777, #1bc96c);
    border-radius: 12px;
    color: #fff;
    padding: 8px 3px;
    box-shadow: 0 8px 22px #13b77a2c;
}

.price small {
    font-size: 11px;
    font-weight: 650;
}

.price strong {
    font-size: clamp(18px, 1.5vw, 25px);
    white-space: nowrap;
    letter-spacing: -.04em;
}

/* RIGHT LOGIN SECTION */

.login-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(15px, 2vw, 32px);
    background:
        radial-gradient(circle at 100% 0, #d9f8ed, transparent 46%),
        #f1faff;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 650px;
    background: #fff;
    border-radius: 28px;
    padding: clamp(24px, 3vw, 50px);
    box-shadow: 0 18px 60px #1c48691b;
}

.portal-pill {
    position: absolute;
    right: 25px;
    top: 22px;
    border: 1px solid #d4e8fb;
    border-radius: 30px;
    padding: 9px 15px;
    font-size: 12px;
    color: #0079c9;
    font-weight: 800;
    background: #f8fcff;
}

h2 {
    font-size: clamp(32px, 3vw, 49px);
    letter-spacing: -.05em;
    margin: 55px 0 9px;
}

.intro {
    color: #64748b;
    font-size: clamp(14px, 1.15vw, 18px);
    line-height: 1.5;
    margin: 0 0 25px;
}

/* FORM */

label {
    display: block;
    font-size: 15px;
    font-weight: 750;
    margin: 20px 0 9px;
}

.field {
    position: relative;
}

.field input {
    width: 100%;
    height: 57px;
    border: 1px solid #d8e3ef;
    border-radius: 13px;
    padding: 0 17px;
    font: inherit;
    font-size: 16px;
    outline: none;
}

.field input:focus {
    border-color: #0a85ce;
    box-shadow: 0 0 0 3px #0a85ce20;
}

.pin-field input {
    padding-right: 100px;
}

.pin-field button {
    position: absolute;
    right: 9px;
    top: 8px;
    height: 41px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #edf2f8;
    color: #15233c;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
}

.hint {
    color: #70819a;
    font-size: 12px;
    margin: 8px 0 15px;
}

.forgot {
    display: inline-block;
    color: #007dcc;
    font-weight: 750;
    font-size: 14px;
    text-decoration: none;
    margin: 19px 0;
}

/* SIGN IN BUTTON */

.sign-in {
    width: 100%;
    height: 61px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(100deg, #0585d4, #1dc866);
    color: white;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px #13aa9c30;
}

.sign-in:disabled {
    opacity: .6;
    cursor: wait;
}

/* SUPPORT */

.support {
    text-align: center;
    margin-top: 23px;
    color: #708098;
    font-size: 13px;
}

.support > span {
    display: block;
    margin-bottom: 12px;
}

.support > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px 20px;
}

.support a {
    color: #0781c9;
    text-decoration: none;
    font-weight: 700;
}

.foot {
    text-align: center;
    font-size: 11px;
    color: #8390a4;
    margin: 19px 0 0;
}

.foot a {
    color: #0781c9;
    text-decoration: none;
    font-weight: 700;
}

/* WHATSAPP BUTTON */

.whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.wa-caption {
    display: none;
}

.wa-bubble {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.16);
    transition: transform 0.2s ease;
}

.wa-bubble svg {
    display: block;
    width: 28px;
    height: 28px;
}

.whatsapp:hover .wa-bubble {
    transform: scale(1.06);
}

/* TOAST */

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    z-index: 1200;
    background: #0f172a;
    color: white;
    padding: 13px 20px;
    border-radius: 12px;
}

.toast.show {
    display: block;
}

/* MODALS */

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: #0f172a70;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop.show {
    display: flex;
}

.modal {
    width: min(94vw, 520px);
    background: white;
    border-radius: 18px;
    padding: 22px;
    max-height: 85vh;
    overflow: auto;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-actions button {
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

/* DESKTOP HEIGHT MANAGEMENT */

@media (min-width: 1051px) {
    html, body {
        height: 100%;
        overflow: hidden;
    }

    .layout {
        height: 100dvh;
        min-height: 0;
    }

    .promo-inner {
        height: 100dvh;
    }

    .login-card {
        max-height: calc(100dvh - 24px);
        overflow: auto;
    }
}

/* SHORT DESKTOP SCREENS */

@media (max-height: 780px) and (min-width: 1051px) {
    .brand img {
        height: 46px;
        width: 46px;
    }

    .brand strong {
        font-size: 25px;
    }

    .eyebrow {
        padding: 5px 11px;
        margin: 5px 0 8px;
    }

    h1 {
        font-size: clamp(25px, 2.1vw, 35px);
        margin-bottom: 7px;
    }

    .tagline {
        margin-bottom: 8px;
    }

    .devices {
        height: clamp(195px, 39vh, 330px);
    }

    .promo-bottom {
        margin-top: 8px;
    }

    .feature {
        padding: 5px 2px;
    }

    .feature-icon {
        font-size: 19px;
    }

    .feature small {
        display: none;
    }

    .login-card {
        padding: 22px 30px;
    }

    h2 {
        margin: 36px 0 5px;
        font-size: 36px;
    }

    .intro {
        margin-bottom: 12px;
        font-size: 14px;
    }

    label {
        margin: 12px 0 6px;
    }

    .field input {
        height: 46px;
    }

    .pin-field button {
        height: 34px;
        top: 6px;
    }

    .forgot {
        margin: 11px 0;
    }

    .sign-in {
        height: 49px;
    }

    .support {
        margin-top: 12px;
    }

    .foot {
        margin-top: 10px;
    }
}

/* TABLET */

@media (max-width: 1050px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .promo-inner {
        max-width: 780px;
    }

    .devices {
        height: auto;
        max-height: 420px;
    }

    .login-side {
        padding: 25px 18px 50px;
    }

    .login-card {
        max-width: 680px;
    }

    .whatsapp {
        bottom: 12px;
        right: 12px;
    }
}

/* MOBILE */

@media (max-width: 560px) {
    .promo-inner {
        padding: 18px;
    }

    .brand img {
        height: 52px;
        width: 52px;
    }

    .brand strong {
        font-size: 26px;
    }

    .eyebrow {
        font-size: 10px;
        margin-top: 20px;
    }

    h1 {
        font-size: 29px;
    }

    .tagline {
        font-size: 14px;
    }

    .device-wrap {
        border-radius: 13px;
    }

    .devices {
        height: 235px;
        object-fit: cover;
    }

    .promo-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .feature {
        padding: 10px 4px;
    }

    .feature b {
        font-size: 11px;
    }

    .feature small {
        display: none;
    }

    .price {
        grid-column: 1 / -1;
    }

    .price strong {
        font-size: 25px;
    }

    .login-card {
        padding: 25px 20px;
    }

    .portal-pill {
        position: static;
        display: inline-block;
    }

    h2 {
        margin: 22px 0 8px;
    }

    .intro {
        margin-bottom: 15px;
    }

    .support > div {
        flex-direction: column;
    }

    .wa-bubble {
        width: 48px;
        height: 48px;
    }
}

/* DESKTOP FULL BACKGROUND IMAGE */

@media (min-width: 1051px) {
    .layout {
        grid-template-columns: 50% 50%;
    }

  .promo {
    background-color: #eef9fa;
    background-image: url('./moyocare-office-background.png');

   
    background-size: auto 70%;

  
    background-position: 65% center;

    background-repeat: no-repeat;
}

    .promo::before {
        background: linear-gradient(
            180deg,
            rgba(248,253,255,.98) 0%,
            rgba(248,253,255,.96) 26%,
            rgba(248,253,255,.70) 37%,
            rgba(248,253,255,0) 52%,
            rgba(248,253,255,0) 78%,
            rgba(246,252,250,.32) 100%
        );
    }

    .promo-inner {
        padding:
            clamp(14px, 2vh, 24px)
            clamp(22px, 3.8vw, 70px);
    }

    .hero {
        justify-content: flex-start;
        padding-top: clamp(14px, 3vh, 35px);
    }

    h1 {
        font-size: clamp(28px, 2.45vw, 43px);
        max-width: 760px;
        margin-bottom: 8px;
    }

    .tagline {
        margin-bottom: 0;
        max-width: 720px;
    }

    .device-wrap {
        flex: 1 1 auto;
        min-height: 170px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .promo-bottom {
        margin-top: 0;
        margin-bottom: clamp(4px, 2vh, 18px);
        gap: 7px;
    }

    .feature {
        background: rgba(255,255,255,.88);
        backdrop-filter: blur(8px);
        min-height: 82px;
    }

    .price {
        min-height: 82px;
    }
}

/* SHORT DESKTOP WITH BACKGROUND IMAGE */

@media (min-width: 1051px) and (max-height: 790px) {
    .hero {
        padding-top: 10px;
    }

    .device-wrap {
        min-height: 130px;
    }

    .feature,
    .price {
        min-height: 70px;
    }

    .promo-bottom {
        margin-bottom: 4px;
    }
}

/* TABLET BACKGROUND IMAGE */

@media (max-width: 1050px) {
    .promo {
        background:
            #eef9fa
            url('./moyocare-office-background.png')
            center 62% / cover no-repeat;
    }

    .promo:before {
        background: linear-gradient(
            180deg,
            #f8fdff 0%,
            #f8fdffef 23%,
            #f8fdff40 50%,
            #ffffff10 78%,
            #f3fcf8 100%
        );
    }

    .hero {
        justify-content: flex-start;
    }

    .device-wrap {
        height: clamp(230px, 45vw, 460px);
        flex: none;
        box-shadow: none;
        border-radius: 0;
    }

    .promo-bottom {
        position: relative;
    }

    .feature {
        backdrop-filter: blur(8px);
    }
}

/* Smooth transition between promotional and login sections */

@media (min-width: 1051px) {

    .promo {
        position: relative;
        isolation: isolate;
    }

    /* Soft fade on the right edge of the image */
    .promo::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 110px;
        height: 100%;
        background: linear-gradient(
            to right,
            rgba(241, 250, 255, 0) 0%,
            rgba(241, 250, 255, 0.35) 35%,
            rgba(241, 250, 255, 0.75) 70%,
            #f1faff 100%
        );
        pointer-events: none;
        z-index: 1;
    }

    /* Keep promotional text and cards visible */
    .promo-inner {
        position: relative;
        z-index: 2;
    }

    /* Match the adjoining background */
    .login-side {
        background:
            radial-gradient(
                circle at 100% 0,
                #d9f8ed,
                transparent 46%
            ),
            #f1faff;
    }
}
