/* ============================================================
   Wiser Broker login / owner-login shared styling
   Used by Views/Login/Login.cshtml (customer) and
   Views/TenantOwnerLogin/OwnerLogin.cshtml (owner).
   ============================================================ */

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* mobile-first: allow the page to scroll vertically; the desktop
       media query re-locks it to a fixed 100vh two-panel layout */
    overflow-x: hidden;
}

body.wb-login {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #1c2440;
    background: #fff;
}

/* mobile-first base: a single, full-width column holding the form panel.
   The marketing panel and the two-column split are layered on only for
   wide screens (see the min-width: 992px block below). This guarantees
   the login form always renders on phones/tablets and in browsers that
   don't cleanly evaluate the desktop layout. */
.wb-shell {
    display: block;
    width: 100%;
}

/* ============ LEFT / MARKETING PANEL (desktop only) ============ */
.wb-left {
    display: none;
    flex: 1 1 58%;
    position: relative;
    color: #fff;
    padding: 30px 50px;
    background: radial-gradient(1200px 600px at 80% 10%, #16386f 0%, rgba(22,56,111,0) 60%),
                linear-gradient(160deg, #0d1f45 0%, #0a1730 55%, #081227 100%);
    overflow: hidden;
}

.wb-left::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 65%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 65%);
    pointer-events: none;
}

/* decorative skyline + cloud/network line-art */
.wb-artbg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 62%;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.wb-left-inner {
    position: relative;
    z-index: 2;
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* the text column is kept narrow so the artwork can sit to the right */
.wb-copy {
    position: relative;
    z-index: 3;
    max-width: 430px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wb-brand img {
    height: 46px;
}

/* laptop dashboard artwork, floated to the right of the copy */
.wb-laptop {
    position: absolute;
    top: 45%;
    right: -60px;
    transform: translateY(-50%);
    width: 530px;
    max-width: 65%;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 30px 45px rgba(0,0,0,.45));
}

.wb-headline {
    font-size: 32px;
    line-height: 1.12;
    font-weight: 700;
    margin: 22px 0 0;
    letter-spacing: -.5px;
    white-space: nowrap;
    color: #fdc912;
}

    .wb-headline .accent {
        color: #7ac943;
    }

.wb-accent-bar {
    width: 60px;
    height: 4px;
    background: #7ac943;
    border-radius: 3px;
    margin: 16px 0 14px;
}

.wb-sub {
    font-size: 14.5px;
    line-height: 1.55;
    color: #c4cfe4;
    font-weight: 300;
    max-width: 420px;
}

.wb-features {
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wb-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.wb-feature .ico {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

    .wb-feature .ico svg {
        width: 26px;
        height: 26px;
        stroke: #d3ddf1;
    }

.wb-feature h4 {
    margin: 2px 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.wb-feature p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #a9b6d1;
    font-weight: 300;
}

/* bottom row: documents artwork (left) + feature badges (right) */
.wb-bottom {
    position: relative;
    z-index: 2;
    padding-top: 14px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.wb-docs {
    width: 330px;
    max-width: 40%;
    flex: 0 0 auto;
    pointer-events: none;
    filter: drop-shadow(0 18px 26px rgba(0,0,0,.4));
}

.wb-badges {
    flex: 1 1 auto;
    align-self: center;
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
}

.wb-badge {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

    .wb-badge svg {
        width: 30px;
        height: 30px;
        stroke: #7ac943;
    }

    .wb-badge span {
        font-size: 13.5px;
        line-height: 1.35;
        color: #cdd7ec;
        font-weight: 400;
    }

/* ============ RIGHT / FORM PANEL ============ */
/* mobile-first: full-width white panel, form near the top with even margins */
.wb-right {
    background: #fff;
    width: 100%;
    min-height: 100vh;
    padding: 48px 8%;
}

.wb-card {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.wb-card-brand {
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eceef4;
}

    .wb-card-brand img {
        height: 44px;
    }

.wb-avail {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

    .wb-avail svg {
        width: 46px;
        height: 46px;
        stroke: #21386e;
        flex: 0 0 46px;
    }

    .wb-avail p {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #1c2440;
        line-height: 1.3;
    }

.wb-welcome {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #14213d;
}

.wb-welcome-sub {
    margin: 0 0 22px;
    font-size: 14px;
    color: #7a839a;
    line-height: 1.5;
    font-weight: 300;
}

.wb-field {
    position: relative;
    margin-bottom: 14px;
}

    .wb-field > svg.leadico {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        stroke: #98a2b8;
        pointer-events: none;
    }

    .wb-field input {
        width: 100%;
        height: 50px;
        border: 1px solid #dfe3ec;
        border-radius: 10px;
        background: #fbfbfd;
        padding: 0 46px;
        font-size: 15px;
        font-family: inherit;
        color: #1c2440;
        outline: none;
        transition: border-color .15s, box-shadow .15s;
    }

        .wb-field input::placeholder {
            color: #9aa3b6;
            font-weight: 300;
        }

        .wb-field input:focus {
            border-color: #21386e;
            box-shadow: 0 0 0 3px rgba(33,56,110,.10);
            background: #fff;
        }

        .wb-field input.LoginError {
            border-color: #e14b4b;
            box-shadow: 0 0 0 3px rgba(225,75,75,.10);
        }

.wb-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    stroke: #98a2b8;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* mobile-first: stack "Keep me signed in" and "Forgot password" on their own
   lines so the long labels don't wrap/collide; desktop puts them side-by-side */
.wb-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 18px;
    font-size: 14px;
}

.wb-check {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #47506a;
    cursor: pointer;
    user-select: none;
    font-weight: 400;
}

    .wb-check input {
        width: 18px;
        height: 18px;
        accent-color: #7ac943;
        cursor: pointer;
    }

.wb-forgot {
    color: #2f6fe0;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

    .wb-forgot:hover {
        text-decoration: underline;
        color: #2f6fe0;
    }

.wb-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 10px;
    background: #14213d;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, transform .05s;
}

    .wb-btn:hover {
        background: #1c2e54;
    }

    .wb-btn:active {
        transform: translateY(1px);
    }

.wb-error {
    display: block;
    color: #e14b4b;
    font-size: 13.5px;
    margin-top: 8px;
    min-height: 16px;
}

.wb-terms {
    margin: 16px 0 0;
    font-size: 13px;
    color: #8a92a6;
    line-height: 1.55;
    font-weight: 300;
}

    .wb-terms a {
        color: #2f6fe0;
        text-decoration: none;
    }

        .wb-terms a:hover {
            text-decoration: underline;
        }

/* ============ FORGOT-PASSWORD MODAL ============ */
.wb-modal .modal-dialog {
    width: 460px;
    max-width: 92%;
    margin: 9vh auto;
}

.wb-modal .modal-content {
    position: relative;
    border: none;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(10,20,45,.28);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.wb-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: #b3bac9;
    cursor: pointer;
    opacity: 1;
    transition: color .15s;
}

    .wb-modal-close:hover {
        color: #6b7488;
    }

.wb-modal-body {
    padding: 36px 38px 32px;
    text-align: center;
}

.wb-modal-ico {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

    .wb-modal-ico svg {
        width: 30px;
        height: 30px;
        stroke: #21386e;
    }

.wb-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #14213d;
    margin: 0 0 8px;
}

.wb-modal-sub {
    font-size: 13.5px;
    font-weight: 300;
    color: #7a839a;
    line-height: 1.55;
    margin: 0 auto 24px;
    max-width: 340px;
}

.wb-modal .wb-field {
    text-align: left;
}

.wb-modal-msg {
    display: block;
    font-size: 13px;
    font-weight: 500;
    min-height: 18px;
    margin: 2px 0 14px;
}

.wb-modal .wb-btn {
    margin-top: 2px;
}

/* ============ RESPONSIVE ============ */
/* small phones: tighten the form-panel margins */
@media (max-width: 480px) {
    .wb-right {
        padding: 32px 20px;
    }

    .wb-welcome {
        font-size: 28px;
    }
}

/* ============ DESKTOP (>= 992px): the full two-panel marketing layout ============ */
/* Everything above is the mobile-first single-column form. Only on genuinely
   wide screens do we switch to the side-by-side marketing + form design. */
@media (min-width: 992px) {
    html, body {
        overflow: hidden;
    }

    .wb-shell {
        display: flex;
        height: 100vh;
        overflow: hidden;
    }

    .wb-left {
        display: block;
    }

    .wb-right {
        flex: 1 1 42%;
        width: auto;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
    }

    .wb-card {
        max-width: 420px;
    }

    /* side-by-side check + forgot link on the wider desktop card */
    .wb-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }
}

/* laptop artwork sits in the marketing panel (desktop only); shrink it on
   narrower desktops/tablets so it doesn't bleed over the feature text. */
@media (min-width: 992px) and (max-width: 1200px) {
    .wb-laptop {
        width: 360px;
        max-width: 42%;
        right: -30px;
    }
}
