﻿/* ============================================================
   WINAPPPAY LOGIN - MODERN ENTERPRISE UI
   Put this at the VERY END of style.css
   ============================================================ */

/* ---------- Base ---------- */

body.login-body {
    margin: 0 !important;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    background: #ffffff !important;
    color: #172033;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* IMPORTANT:
   Override old template fonts only inside login page.
*/

.login-page,
.login-page h1,
.login-page h2,
.login-page h3,
.login-page h4,
.login-page h5,
.login-page h6,
.login-page p,
.login-page span,
.login-page label,
.login-page input,
.login-page button,
.login-page small,
.login-page strong,
.login-page div {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}


/* ---------- Main Page ---------- */

.login-page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff;
}

    .login-page *,
    .login-page *::before,
    .login-page *::after {
        box-sizing: border-box;
    }


/* ============================================================
   MAIN GRID
   ============================================================ */

.login-shell {
    display: grid;
    grid-template-columns: minmax(500px, 43%) minmax(0, 57%);
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}


/* ============================================================
   LEFT SIDE
   ============================================================ */

.login-form-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 40px clamp(45px, 5vw, 80px);
    background: #ffffff;
    border-right: 1px solid #eef1f6;
}

.login-panel {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}


/* ============================================================
   LOGO HEADER
   ============================================================ */

.login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin: 0 0 48px;
}


/* Logo */

.login-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

    .login-logo img {
        display: block;
        width: auto;
        height: auto;
        max-width: 165px;
        max-height: 62px;
        object-fit: contain;
    }


/* Secure Login */

.secure-login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 13px;
    color: #3265d5;
    background: #f5f8ff;
    border: 1px solid #dbe6ff;
    border-radius: 999px;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1;
    white-space: nowrap;
}

    .secure-login-badge i {
        color: #3978f6;
        font-size: 11px;
    }


/* ============================================================
   WELCOME
   ============================================================ */

.welcome {
    margin: 0 0 32px;
}

.welcome-eyebrow {
    display: block;
    margin: 0 0 8px;
    color: #3978f6;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.welcome h1 {
    margin: 0 0 10px !important;
    color: #111827 !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -.035em;
}

.welcome p {
    max-width: 440px;
    margin: 0 !important;
    color: #667085 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}


/* ============================================================
   FORM
   ============================================================ */

.login-form {
    width: 100%;
}

.login-field {
    width: 100%;
    margin: 0 0 18px;
}

.login-label {
    display: block;
    margin: 0 0 7px !important;
    color: #344054 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.4;
}


/* Input wrapper */

.login-input {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}


/* Input Icon */

.login-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #8a97aa;
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}


/* Input */

.login-input .form-control {
    display: block;
    width: 100% !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 16px 0 48px !important;
    color: #182230 !important;
    background: #ffffff !important;
    border: 1px solid #d7deea !important;
    border-radius: 9px !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 52px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

    .login-input .form-control::placeholder {
        color: #98a2b3 !important;
        opacity: 1;
    }

    .login-input .form-control:hover {
        border-color: #b9c5d7 !important;
    }

    .login-input .form-control:focus {
        color: #182230 !important;
        border-color: #3978f6 !important;
        box-shadow: 0 0 0 3px rgba(57, 120, 246, .10) !important;
    }

.login-input:focus-within .login-input-icon {
    color: #3978f6;
}


/* ============================================================
   VALIDATION
   ============================================================ */

.validation-message {
    display: block;
    min-height: 15px;
    margin: 5px 0 0 !important;
    color: #d92d20 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
}

.validation-summary {
    margin: 0 0 15px;
    color: #d92d20 !important;
    font-size: 11px !important;
}

    .validation-summary:empty {
        display: none;
    }


/* Login error */

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    margin: 0 0 18px;
    padding: 11px 13px;
    color: #b42318;
    background: #fff5f4;
    border: 1px solid #fecdca;
    border-radius: 8px;
    font-size: 12px !important;
    line-height: 1.5;
}


/* ============================================================
   REMEMBER ME
   ============================================================ */

.login-options {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 3px 0 22px;
}

.remember-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    color: #667085 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    cursor: pointer;
    user-select: none;
}


    /* Hide default checkbox */

    .remember-option input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
    }


/* Custom checkbox */

.remember-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: transparent;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 8px;
    transition: .15s ease;
}

.remember-option:hover .remember-checkbox {
    border-color: #3978f6;
}

.remember-option input:checked + .remember-checkbox {
    color: #ffffff;
    background: #3978f6;
    border-color: #3978f6;
}


/* ============================================================
   LOGIN BUTTON
   ============================================================ */

.btn-login {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100% !important;
    min-height: 52px;
    margin: 0 !important;
    padding: 12px 52px !important;
    color: #ffffff !important;
    background: linear-gradient( 90deg, #3157b7 0%, #3978f6 100% ) !important;
    border: none !important;
    border-radius: 9px !important;
    outline: none;
    box-shadow: 0 8px 18px rgba(49, 87, 183, .18);
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

    .btn-login:hover {
        color: #ffffff !important;
        box-shadow: 0 10px 22px rgba(49, 87, 183, .24);
        transform: translateY(-1px);
    }

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

    .btn-login:disabled {
        cursor: not-allowed;
        opacity: .7;
        transform: none;
    }


/* Arrow */

.login-button-arrow {
    position: absolute;
    right: 20px;
    font-size: 12px;
    transition: transform .15s ease;
}

.btn-login:hover .login-button-arrow {
    transform: translateX(3px);
}


/* ============================================================
   SECURITY BADGES BELOW LOGIN
   ============================================================ */

/*
   Add class="login-security"
   to the parent element inside _LoginButtonBadge.cshtml
*/

.login-security {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    margin: 25px 0 0 !important;
    padding: 18px 2px 0 !important;
    border-top: 1px solid #eef1f5;
}

.login-security-item {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    color: #7b8798 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    white-space: nowrap;
}

    .login-security-item i {
        color: #718096;
        font-size: 10px;
    }


/* ============================================================
   RIGHT SIDE
   ============================================================ */

.login-hero-section {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: linear-gradient( 145deg, #f7faff 0%, #edf4ff 100% );
}

.login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(48px, 6vh, 72px) clamp(50px, 6vw, 90px) 28px;
    overflow: hidden;
}


/* ============================================================
   HERO CONTENT
   ============================================================ */

.hero-content {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    z-index: 2;
}

.hero-copy {
    width: 100%;
    max-width: 620px;
}


/* Hero Label */

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 13px;
    color: #3978f6 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.4;
}

.hero-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #3978f6;
    background: #ffffff;
    border: 1px solid #dce7fa;
    border-radius: 7px;
    font-size: 9px;
}


/* Main Hero Heading */

.hero-copy h2 {
    max-width: 620px;
    margin: 0 0 15px !important;
    color: #101828 !important;
    font-size: clamp(38px, 3.6vw, 54px) !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    letter-spacing: -.045em !important;
}

.hero-copy p {
    max-width: 580px;
    margin: 0 !important;
    color: #667085 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
}


/* ============================================================
   FEATURE CARDS
   ============================================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 28px 0 0;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 66px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid #dfe7f2;
    border-radius: 11px;
    box-shadow: 0 4px 12px rgba(42, 66, 110, .035);
}


/* Icon */

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: #3978f6;
    background: linear-gradient( 135deg, #edf4ff 0%, #e7f0ff 100% );
    border: 1px solid #e2ebfb;
    border-radius: 10px;
}

    .feature-icon svg {
        display: block;
        width: 18px;
        height: 18px;
    }

.feature-card > div {
    min-width: 0;
}

.feature-card strong {
    display: block;
    margin: 0 0 2px;
    color: #344054 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.4;
}

.feature-card small {
    display: block;
    color: #8a96a8 !important;
    font-size: 9px !important;
    font-weight: 400 !important;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* ============================================================
   HERO IMAGE
   ============================================================ */

.hero-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-height: 250px;
    padding: 22px 0 0;
}

.hero-image {
    position: relative;
    display: block;
    width: auto;
    max-width: min(90%, 430px);
    max-height: 350px;
    object-fit: contain;
    object-position: center bottom;
    z-index: 2;
}


/* Subtle glow */

.hero-image-glow {
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 420px;
    max-width: 80%;
    height: 120px;
    background: radial-gradient( ellipse at center, rgba(57, 120, 246, .10), transparent 70% );
    transform: translateX(-50%);
}


/* ============================================================
   HERO DECORATIONS
   ============================================================ */

.hero-decoration {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.hero-decoration-one {
    top: -220px;
    right: -160px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(57, 120, 246, .08);
}

.hero-decoration-two {
    right: -180px;
    bottom: -230px;
    width: 450px;
    height: 450px;
    background: rgba(57, 120, 246, .025);
}


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

.hero-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 0;
    color: #98a2b3 !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    z-index: 2;
}


/* ============================================================
   1200PX
   ============================================================ */

@media (max-width: 1199.98px) {

    .login-shell {
        grid-template-columns: minmax(440px, 46%) minmax(0, 54%);
    }

    .login-form-section {
        padding: 35px clamp(35px, 4vw, 55px);
    }

    .login-header {
        margin-bottom: 40px;
    }

    .login-hero {
        padding: 45px clamp(35px, 5vw, 60px) 25px;
    }

    .hero-copy h2 {
        font-size: 42px !important;
    }

    .hero-image {
        max-width: 380px;
        max-height: 310px;
    }
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991.98px) {

    body.login-body {
        background: #f7f9fc !important;
    }

    .login-shell {
        display: block;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .login-form-section {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 40px clamp(30px, 8vw, 75px);
        border-right: none;
        background: linear-gradient( 180deg, #f6f9ff 0, #ffffff 240px );
    }

    .login-panel {
        max-width: 520px;
    }

    .login-hero-section {
        display: none;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 575.98px) {

    .login-form-section {
        align-items: flex-start;
        padding: max(26px, env(safe-area-inset-top)) 20px max(25px, env(safe-area-inset-bottom));
    }

    .login-panel {
        width: 100%;
        max-width: none;
    }


    /* Header */

    .login-header {
        margin-bottom: 40px;
    }

    .login-logo img {
        max-width: 140px;
        max-height: 55px;
    }

    .secure-login-badge {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 10px !important;
    }


    /* Welcome */

    .welcome {
        margin-bottom: 28px;
    }

    .welcome-eyebrow {
        font-size: 9px !important;
    }

    .welcome h1 {
        font-size: 29px !important;
    }

    .welcome p {
        max-width: 370px;
        font-size: 12px !important;
    }


    /* Form */

    .login-field {
        margin-bottom: 17px;
    }

    .login-label {
        font-size: 12px !important;
    }

    /*
       16px avoids automatic zoom on iPhone/Safari.
    */

    .login-input .form-control {
        height: 52px !important;
        font-size: 16px !important;
        line-height: normal;
    }

    .login-options {
        margin-bottom: 20px;
    }

    .btn-login {
        min-height: 52px;
        font-size: 13px !important;
    }


    /* Security */

    .login-security {
        gap: 8px;
        margin-top: 23px !important;
        padding-top: 16px !important;
    }

    .login-security-item {
        font-size: 9px !important;
    }
}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 374.98px) {

    .login-form-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .login-logo img {
        max-width: 125px;
    }

    .secure-login-badge {
        width: 32px;
        height: 32px;
        padding: 0;
    }

        .secure-login-badge span {
            display: none;
        }

    .welcome h1 {
        font-size: 27px !important;
    }

    .login-security {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }
}


/* ============================================================
   SHORT LAPTOP SCREENS
   1366 x 768 etc.
   ============================================================ */

@media (min-width: 992px) and (max-height: 780px) {

    .login-form-section {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .login-header {
        margin-bottom: 30px;
    }

    .login-logo img {
        max-width: 150px;
        max-height: 55px;
    }

    .welcome {
        margin-bottom: 23px;
    }

        .welcome h1 {
            font-size: 30px !important;
        }

    .login-field {
        margin-bottom: 14px;
    }

    .login-input .form-control {
        height: 48px !important;
        line-height: 48px;
    }

    .login-options {
        margin-bottom: 17px;
    }

    .btn-login {
        min-height: 49px;
    }

    .login-security {
        margin-top: 19px !important;
        padding-top: 14px !important;
    }

    .login-hero {
        padding-top: 32px;
        padding-bottom: 18px;
    }

    .hero-copy h2 {
        font-size: 39px !important;
    }

    .feature-grid {
        margin-top: 18px;
    }

    .feature-card {
        min-height: 57px;
    }

    .hero-visual {
        min-height: 210px;
        padding-top: 12px;
    }

    .hero-image {
        max-height: 260px;
    }
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .login-page *,
    .login-page *::before,
    .login-page *::after {
        transition: none !important;
        animation: none !important;
    }
}


.login-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #8492a6;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
    transition: color .18s ease;
}

    .login-input-icon svg {
        display: block;
        width: 18px;
        height: 18px;
    }

.login-input:focus-within .login-input-icon {
    color: #3978f6;
}

.hero-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    color: #3978f6;
    background: #ffffff;
    border: 1px solid #dce7f7;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(16, 24, 40, .04);
}

    .hero-label-icon svg {
        width: 14px;
        height: 14px;
    }

/* ============================================================
   LOGIN BUTTON LOADER
   ============================================================ */

.login-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: loginSpinnerRotate .7s linear infinite;
}

    .login-spinner.d-none {
        display: none !important;
    }

@keyframes loginSpinnerRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* Button arrow */

.login-button-arrow {
    position: absolute;
    top: 50%;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    transition: transform .18s ease, opacity .18s ease;
}

    .login-button-arrow svg {
        width: 16px;
        height: 16px;
    }


/* Move arrow slightly on hover */

.btn-login:hover .login-button-arrow {
    transform: translateY(-50%) translateX(3px);
}


/* Loading button */

.btn-login:disabled {
    cursor: wait;
    opacity: .82;
    transform: none !important;
}


    /*
   Hide arrow automatically while
   the button is disabled / signing in.
*/

    .btn-login:disabled .login-button-arrow {
        opacity: 0;
    }
/* ============================================================
   REFERENCE UI MATCH OVERRIDES - 2026-10-02
   ============================================================ */
@media (min-width: 992px) {
    .login-shell {
        grid-template-columns: minmax(500px, 46.5%) minmax(0, 53.5%);
    }

    .login-form-section {
        padding: 42px clamp(58px, 6.4vw, 105px);
    }

    .login-panel {
        max-width: 535px;
    }

    .login-header {
        margin-bottom: 52px;
    }

    .login-logo img {
        max-width: 175px;
        max-height: 70px;
    }

    .welcome {
        margin-bottom: 31px;
    }

        .welcome h1 {
            font-size: 35px !important;
        }

    .login-hero {
        padding: clamp(48px, 5.5vh, 72px) clamp(42px, 4.6vw, 78px) 20px;
    }

    .hero-content {
        max-width: 820px;
    }

    .hero-copy {
        max-width: 700px;
    }

        .hero-copy h2 {
            max-width: 700px;
            font-size: clamp(42px, 3.55vw, 58px) !important;
        }

        .hero-copy p {
            max-width: 650px;
            font-size: 14px !important;
        }

    .feature-grid {
        gap: 12px 18px;
        margin-top: 24px;
    }

    .feature-card {
        min-height: 64px;
        padding: 10px 14px;
    }

    .hero-visual {
        min-height: 330px;
        padding-top: 10px;
        align-items: flex-end;
    }

    .hero-image {
        width: min(100%, 700px);
        max-width: 700px;
        max-height: 430px;
        object-fit: contain;
        object-position: center bottom;
    }

    .hero-image-glow {
        width: 620px;
        height: 160px;
    }
}

@media (min-width: 1400px) and (min-height: 800px) {
    .login-form-section {
        padding-left: clamp(75px, 7vw, 125px);
        padding-right: clamp(75px, 7vw, 125px);
    }

    .login-panel {
        max-width: 550px;
    }

    .hero-visual {
        min-height: 380px;
    }

    .hero-image {
        width: min(100%, 760px);
        max-width: 760px;
        max-height: 475px;
    }
}

@media (min-width: 992px) and (max-height: 780px) {
    .login-shell {
        grid-template-columns: minmax(480px, 46.5%) minmax(0, 53.5%);
    }

    .login-form-section {
        padding: 24px clamp(52px, 6vw, 90px);
    }

    .login-header {
        margin-bottom: 28px;
    }

    .hero-visual {
        min-height: 230px;
        padding-top: 8px;
    }

    .hero-image {
        width: min(96%, 590px);
        max-width: 590px;
        max-height: 285px;
    }
}

/* ============================================================
   FINAL FULL-HEIGHT HERO OVERRIDES
   Desktop layout matched to WinappPay login reference
   ============================================================ */

@media (min-width: 992px) {
    .login-shell {
        grid-template-columns: minmax(500px, 46%) minmax(0, 54%);
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }

    .login-form-section,
    .login-hero-section {
        height: 100vh;
        min-height: 100vh;
    }

    .login-hero-section {
        position: relative;
        overflow: hidden;
        background: linear-gradient(145deg, #f4f9ff 0%, #edf5ff 48%, #e9f2ff 100%);
    }

    .login-hero {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 0;
        overflow: hidden;
    }

        .login-hero .hero-content {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-rows: auto minmax(0, 1fr);
            width: 100%;
            max-width: none;
            height: 100%;
            min-height: 0;
            margin: 0;
            padding: clamp(42px, 5.4vh, 68px) clamp(42px, 5vw, 78px) 0;
            box-sizing: border-box;
        }

        .login-hero .hero-top {
            position: relative;
            z-index: 5;
            width: 100%;
            max-width: 820px;
            margin: 0 auto;
        }

        .login-hero .hero-copy {
            width: 100%;
            max-width: 720px;
        }

        .login-hero .hero-label {
            margin-bottom: 15px;
            color: #4f8cff !important;
            font-size: 12px !important;
            font-weight: 700 !important;
            line-height: 1.2;
            letter-spacing: 3.6px;
            text-transform: uppercase;
        }

        .login-hero .hero-copy h2 {
            max-width: 720px;
            margin: 0 !important;
            color: #0b1d3a !important;
            font-size: clamp(42px, 3.45vw, 60px) !important;
            font-weight: 800 !important;
            line-height: .99 !important;
            letter-spacing: -2.2px !important;
        }

        .login-hero .hero-copy p {
            max-width: 660px;
            margin: 17px 0 0 !important;
            color: #64748b !important;
            font-size: 15px !important;
            line-height: 1.5 !important;
        }

        .login-hero .feature-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px 18px;
            width: 100%;
            margin-top: 27px;
        }

        .login-hero .feature-card {
            min-height: 66px;
            padding: 10px 14px;
            background: rgba(255,255,255,.80);
            border: 1px solid rgba(203,213,225,.70);
            border-radius: 11px;
            box-shadow: 0 5px 18px rgba(30,64,175,.04);
            backdrop-filter: blur(8px);
        }

        .login-hero .hero-visual {
            position: relative;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            width: calc(100% + (clamp(42px, 5vw, 78px) * 2));
            height: 100%;
            min-height: 0;
            margin-left: calc(clamp(42px, 5vw, 78px) * -1);
            padding: 14px 0 0;
            overflow: hidden;
        }

        .login-hero .hero-image {
            position: relative;
            z-index: 2;
            display: block;
            width: 100%;
            height: 100%;
            max-width: none;
            max-height: none;
            object-fit: contain;
            object-position: center bottom;
        }

        .login-hero .hero-image-glow {
            position: absolute;
            left: 50%;
            bottom: -10px;
            width: 82%;
            max-width: none;
            height: 38%;
            background: radial-gradient(ellipse at center, rgba(57,120,246,.14), transparent 70%);
            transform: translateX(-50%);
            pointer-events: none;
        }

        .login-hero .hero-footer {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 8px;
            z-index: 5;
            margin: 0;
            pointer-events: none;
        }
}

/* Keep the complete hero visible on shorter desktop/laptop screens. */
@media (min-width: 992px) and (max-height: 780px) {
    .login-hero .hero-content {
        padding-top: 24px;
    }

    .login-hero .hero-label {
        margin-bottom: 8px;
        font-size: 10px !important;
        letter-spacing: 3px;
    }

    .login-hero .hero-copy h2 {
        font-size: clamp(34px, 3vw, 43px) !important;
        line-height: 1 !important;
    }

    .login-hero .hero-copy p {
        margin-top: 10px !important;
        font-size: 12px !important;
    }

    .login-hero .feature-grid {
        gap: 8px 14px;
        margin-top: 14px;
    }

    .login-hero .feature-card {
        min-height: 52px;
        padding: 7px 11px;
    }

    .login-hero .feature-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .login-hero .hero-visual {
        padding-top: 5px;
    }
}

/* Tablet/mobile keeps the existing clean login-only presentation. */
@media (max-width: 991.98px) {
    .login-shell {
        height: auto;
        overflow: visible;
    }
}

/* ============================================================
   LOGIN HERO - FEATURE ICONS
   ============================================================ */

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    margin-right: 14px;
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}


    /* SVG */

    .feature-icon svg {
        display: block;
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }


/* ---------------- BLUE ---------------- */

.feature-icon-blue {
    color: #2494f2;
    background: linear-gradient( 135deg, #e7f5ff 0%, #dcefff 100% );
    border: 1px solid #d3eaff;
}


/* ---------------- GREEN ---------------- */

.feature-icon-green {
    color: #13bfa6;
    background: linear-gradient( 135deg, #ddfaf5 0%, #cdf7ef 100% );
    border: 1px solid #c2f1e8;
}


/* ---------------- PURPLE ---------------- */

.feature-icon-purple {
    color: #8b45e8;
    background: linear-gradient( 135deg, #f3e9ff 0%, #eadcff 100% );
    border: 1px solid #e5d5ff;
}


/* ---------------- ORANGE ---------------- */

.feature-icon-orange {
    color: #ef704d;
    background: linear-gradient( 135deg, #fff0e9 0%, #ffe3d9 100% );
    border: 1px solid #ffddd1;
}


/* Optional hover */

.feature-card:hover .feature-icon {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 575.98px) {

    .feature-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        margin-right: 11px;
        border-radius: 10px;
    }

        .feature-icon svg {
            width: 20px;
            height: 20px;
        }
}


/* ==========================================================
   WINAPPPAY LOGIN - LEFT PANEL ONLY
   ========================================================== */

.wp-login-refined {
    --wpl-primary: #285bd0;
    --wpl-primary-dark: #1e49ad;
    --wpl-text: #102449;
    --wpl-muted: #7b8da7;
    --wpl-border: #dce5f2;
    width: 100%;
    min-width: 0;
}

    /* FORM SPACING */

    .wp-login-refined .wp-refined-form {
        width: 100%;
    }

    .wp-login-refined .wp-refined-field {
        margin-bottom: 23px;
    }

    .wp-login-refined .login-label {
        display: block;
        margin-bottom: 9px;
        color: #243b60;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .1px;
    }

    /* INPUT FIELDS */

    .wp-login-refined .wp-refined-input {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 54px;
        border: 1px solid var(--wpl-border);
        border-radius: 12px;
        background: #f7faff;
        transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
    }

        .wp-login-refined .wp-refined-input:hover {
            border-color: #c2d3ec;
            background: #f9fbff;
        }

        .wp-login-refined .wp-refined-input:focus-within {
            border-color: #4a83e8;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(50, 110, 225, .09);
        }

        .wp-login-refined .wp-refined-input .login-input-icon {
            position: absolute;
            left: 17px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 19px;
            height: 19px;
            color: #8297b4;
            pointer-events: none;
        }

            .wp-login-refined .wp-refined-input .login-input-icon svg {
                width: 19px;
                height: 19px;
            }

        .wp-login-refined .wp-refined-input .form-control {
            width: 100%;
            height: 54px;
            min-height: 54px;
            padding: 0 16px 0 50px;
            border: 0 !important;
            border-radius: 12px;
            background: transparent !important;
            box-shadow: none !important;
            outline: none;
            color: #172b4d;
            font-size: 13px;
            font-weight: 500;
        }

            .wp-login-refined .wp-refined-input .form-control::placeholder {
                color: #9aabc0;
                font-weight: 400;
            }

    /* REMEMBER ME */

    .wp-login-refined .wp-refined-options {
        margin: 6px 0 22px;
    }

    .wp-login-refined .remember-option {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        color: #60728c;
        font-size: 12px;
        cursor: pointer;
    }

    /* PRIMARY LOGIN BUTTON */

    .wp-login-refined .wp-refined-submit {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 54px;
        padding: 13px 46px;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 12px;
        background: linear-gradient( 110deg, #244fb2 0%, #3778f3 100% );
        box-shadow: 0 11px 24px rgba(42, 94, 210, .18);
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    }

        .wp-login-refined .wp-refined-submit:hover {
            transform: translateY(-1px);
            box-shadow: 0 15px 28px rgba(42, 94, 210, .24);
            filter: brightness(1.03);
        }

        .wp-login-refined .wp-refined-submit:focus-visible,
        .wp-login-refined .wp-pwa-install-button:focus-visible {
            outline: 3px solid rgba(50, 120, 240, .28);
            outline-offset: 3px;
        }

        .wp-login-refined .wp-refined-submit:disabled {
            opacity: .7;
            cursor: not-allowed;
            transform: none;
        }

        .wp-login-refined .wp-refined-submit .login-button-arrow {
            position: absolute;
            right: 20px;
            display: flex;
            align-items: center;
        }

            .wp-login-refined .wp-refined-submit .login-button-arrow svg {
                width: 18px;
                height: 18px;
            }

    /* PWA INSTALL CARD */

    .wp-login-refined .wp-pwa-install-card {
        display: flex;
        align-items: center;
        gap: 13px;
        width: 100%;
        margin: 18px 0 20px;
        padding: 14px;
        border: 1px solid #dce8f7;
        border-radius: 15px;
        background: linear-gradient( 115deg, #f7faff 0%, #edf5ff 100% );
        box-shadow: 0 4px 15px rgba(34, 78, 143, .035);
    }

        .wp-login-refined .wp-pwa-install-card[hidden],
        .wp-login-refined .wp-pwa-install-button[hidden] {
            display: none !important;
        }

    .wp-login-refined .wp-pwa-install-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
        border: 1px solid #d5e6ff;
        border-radius: 13px;
        background: #e7f1ff;
        color: #2766c8;
        font-size: 19px;
    }

    .wp-login-refined .wp-pwa-install-content {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
        gap: 4px;
    }

        .wp-login-refined .wp-pwa-install-content strong {
            color: #19345d;
            font-size: 12.5px;
            font-weight: 700;
        }

        .wp-login-refined .wp-pwa-install-content span {
            color: #7186a4;
            font-size: 11px;
            line-height: 1.5;
        }

    .wp-login-refined .wp-pwa-install-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex-shrink: 0;
        min-height: 37px;
        padding: 9px 14px;
        border: 1px solid #2c67d3;
        border-radius: 10px;
        background: #2868d8;
        color: #fff;
        font-family: inherit;
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
        cursor: pointer;
        transition: background .2s ease, transform .2s ease;
    }

        .wp-login-refined .wp-pwa-install-button:hover {
            background: #194fb2;
            transform: translateY(-1px);
        }

    /* VALIDATION */

    .wp-login-refined .wp-refined-alert {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
        border: 1px solid #f5cece;
        border-radius: 11px;
        background: #fff5f5;
        color: #b42330;
        font-size: 12px;
    }

    .wp-login-refined .validation-message,
    .wp-login-refined .validation-summary {
        font-size: 12px;
    }

/* MOBILE */

@media (max-width: 575px) {
    .wp-login-refined .wp-refined-field {
        margin-bottom: 19px;
    }

    .wp-login-refined .wp-refined-input,
    .wp-login-refined .wp-refined-input .form-control {
        min-height: 51px;
        height: 51px;
    }

    .wp-login-refined .wp-refined-submit {
        min-height: 52px;
    }

    .wp-login-refined .wp-pwa-install-card {
        gap: 10px;
        padding: 12px;
    }

    .wp-login-refined .wp-pwa-install-icon {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
        font-size: 16px;
    }

    .wp-login-refined .wp-pwa-install-button {
        padding: 9px 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wp-login-refined *,
    .wp-login-refined *::before,
    .wp-login-refined *::after {
        transition: none !important;
    }
}


.wp-login-refined .wp-pwa-install-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #d9e7fa;
    border-radius: 15px;
    background: linear-gradient( 115deg, #f6faff, #eaf3ff );
    box-shadow: 0 5px 18px rgba(30, 75, 145, .05);
}

.wp-login-refined .wp-pwa-install-content {
    flex: 1;
    min-width: 0;
}

    .wp-login-refined .wp-pwa-install-content strong {
        display: block;
        margin-bottom: 4px;
        color: #17365f;
        font-size: 13px;
        font-weight: 700;
    }

    .wp-login-refined .wp-pwa-install-content span {
        color: #7185a2;
        font-size: 11px;
        line-height: 1.5;
    }

.wp-login-refined .wp-pwa-install-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 15px;
    border: 0;
    border-radius: 10px;
    background: #2766d2;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease;
}

    .wp-login-refined .wp-pwa-install-button:hover {
        background: #184da9;
    }

    .wp-login-refined .wp-pwa-install-button:disabled {
        background: #e5f5ed;
        color: #18845d;
        cursor: default;
    }

.wp-pwa-install-help {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid #d7e7fc;
    border-radius: 10px;
    background: #f4f8ff;
    color: #315784;
    font-size: 12px;
    line-height: 1.6;
}

    .wp-pwa-install-help[hidden] {
        display: none !important;
    }

@media (max-width: 575px) {
    .wp-login-refined .wp-pwa-install-card {
        flex-wrap: wrap;
    }

    .wp-login-refined .wp-pwa-install-button {
        width: 100%;
    }
}





.wp-login-clean {
    width: 100%;
    max-width: 560px;
    margin: 20px auto;
    padding: 30px 34px 24px;
    background: #ffffff;
    border: 1px solid #dfe7f2;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(20, 50, 100, .045);
    box-sizing: border-box;
}

    .wp-login-clean,
    .wp-login-clean *,
    .wp-login-clean *::before,
    .wp-login-clean *::after {
        box-sizing: border-box;
    }

        .wp-login-clean .wp-login-form {
            display: flex;
            flex-direction: column;
            width: 100%;
            margin: 22px 0 0;
            padding: 0;
            gap: 0;
        }

        .wp-login-clean .wp-login-field {
            width: 100%;
            margin: 0 0 19px;
            padding: 0;
        }

        .wp-login-clean .wp-login-label {
            display: block;
            margin: 0 0 8px;
            color: #273751;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.5;
        }

        .wp-login-clean .wp-login-control {
            display: flex;
            align-items: center;
            width: 100%;
            height: 52px;
            padding: 0 14px;
            background: #ffffff;
            border: 1px solid #dbe4f0;
            border-radius: 11px;
            box-shadow: none;
            overflow: hidden;
            transition: border-color .2s ease, box-shadow .2s ease;
        }

            .wp-login-clean .wp-login-control:hover {
                border-color: #b7c9e3;
            }

            .wp-login-clean .wp-login-control:focus-within {
                border-color: #3975e8;
                box-shadow: 0 0 0 3px rgba(57, 117, 232, .08);
            }

        .wp-login-clean .wp-login-control-icon {
            display: flex;
            flex: 0 0 18px;
            align-items: center;
            justify-content: center;
            width: 18px;
            margin-right: 13px;
            color: #91a2bc;
            font-size: 15px;
        }

        .wp-login-clean .wp-login-textbox {
            display: block;
            flex: 1 1 auto;
            width: 100%;
            min-width: 0;
            height: 48px;
            padding: 0;
            margin: 0;
            background: transparent;
            border: none;
            border-radius: 0;
            outline: none;
            box-shadow: none;
            color: #1c2b45;
            font-family: inherit;
            font-size: 13px;
            font-weight: 500;
            line-height: normal;
            appearance: none;
            -webkit-appearance: none;
        }

            .wp-login-clean .wp-login-textbox:focus {
                background: transparent;
                border: none;
                outline: none;
                box-shadow: none;
            }

            .wp-login-clean .wp-login-textbox::placeholder {
                color: #a3afc1;
                font-weight: 400;
            }

            .wp-login-clean .wp-login-textbox:-webkit-autofill,
            .wp-login-clean .wp-login-textbox:-webkit-autofill:hover,
            .wp-login-clean .wp-login-textbox:-webkit-autofill:focus {
                -webkit-text-fill-color: #1c2b45;
                -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
                box-shadow: 0 0 0 1000px #ffffff inset;
                caret-color: #1c2b45;
            }

        .wp-login-clean .wp-login-eye {
            display: flex;
            flex: 0 0 32px;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            margin-left: 8px;
            padding: 0;
            background: transparent;
            border: none;
            border-radius: 7px;
            color: #91a2bc;
            cursor: pointer;
        }

            .wp-login-clean .wp-login-eye:hover {
                background: #f1f5fc;
                color: #2d63d2;
            }

        .wp-login-clean .wp-login-options {
            display: flex;
            align-items: center;
            margin: 0 0 20px;
            padding: 0;
        }

        .wp-login-clean .wp-login-remember {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            margin: 0;
            color: #64748b;
            font-size: 12px;
            cursor: pointer;
        }

            .wp-login-clean .wp-login-remember input {
                width: 17px;
                height: 17px;
                margin: 0;
                accent-color: #326bdc;
                cursor: pointer;
            }

        .wp-login-clean .wp-login-submit {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-height: 51px;
            margin: 0;
            padding: 12px 42px;
            background: linear-gradient(100deg, #2d56b8, #3979ef);
            border: 1px solid transparent;
            border-radius: 10px;
            box-shadow: 0 8px 18px rgba(46, 101, 213, .14);
            color: #ffffff;
            font-family: inherit;
            font-size: 13px;
            font-weight: 650;
            cursor: pointer;
            transition: background .2s ease, box-shadow .2s ease;
        }

            .wp-login-clean .wp-login-submit:hover {
                background: linear-gradient(100deg, #254da8, #2f6cdb);
                box-shadow: 0 10px 22px rgba(46, 101, 213, .19);
            }

            .wp-login-clean .wp-login-submit > .fa-arrow-right {
                position: absolute;
                right: 19px;
                font-size: 13px;
            }

        .wp-login-clean .wp-login-install {
            display: flex;
            align-items: center;
            gap: 13px;
            width: 100%;
            margin-top: 20px;
            padding: 13px;
            background: #f7faff;
            border: 1px solid #e1eafa;
            border-radius: 12px;
        }

        .wp-login-clean .wp-login-install-icon {
            display: flex;
            flex: 0 0 43px;
            align-items: center;
            justify-content: center;
            width: 43px;
            height: 43px;
            background: #e9f1ff;
            border: 1px solid #d8e5fc;
            border-radius: 10px;
            color: #326bd9;
            font-size: 17px;
        }

        .wp-login-clean .wp-login-install-info {
            display: flex;
            flex: 1 1 auto;
            flex-direction: column;
            gap: 5px;
            min-width: 0;
        }

            .wp-login-clean .wp-login-install-info strong {
                color: #1b3153;
                font-size: 12px;
                font-weight: 700;
            }

            .wp-login-clean .wp-login-install-info span {
                color: #7889a3;
                font-size: 10.5px;
                line-height: 1.5;
            }

        .wp-login-clean .wp-login-install-button {
            display: inline-flex;
            flex: 0 0 auto;
            align-items: center;
            justify-content: center;
            gap: 7px;
            min-height: 38px;
            padding: 0 13px;
            background: #2e65d4;
            border: 1px solid #2e65d4;
            border-radius: 8px;
            color: #ffffff;
            font-family: inherit;
            font-size: 11px;
            font-weight: 650;
            cursor: pointer;
        }

            .wp-login-clean .wp-login-install-button:hover {
                background: #2555b8;
            }

        .wp-login-clean .wp-login-footer {
            margin-top: 21px;
            padding-top: 15px;
            border-top: 1px solid #e9eef5;
        }

        .wp-login-clean .wp-login-error {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 15px 0;
            padding: 12px 14px;
            background: #fff5f5;
            border: 1px solid #f1d2d2;
            border-radius: 9px;
            color: #b42332;
            font-size: 12px;
        }

        .wp-login-clean .wp-login-validation {
            display: block;
            margin-top: 5px;
            color: #c73545;
            font-size: 11px;
        }

            .wp-login-clean .wp-login-validation:empty {
                display: none;
            }

@media (max-width: 640px) {
    .wp-login-clean {
        width: calc(100% - 24px);
        max-width: 100%;
        margin: 12px auto;
        padding: 22px 18px;
        border-radius: 15px;
    }

        .wp-login-clean .wp-login-form {
            margin-top: 18px;
        }

        .wp-login-clean .wp-login-field {
            margin-bottom: 16px;
        }

        .wp-login-clean .wp-login-control {
            height: 50px;
        }

        .wp-login-clean .wp-login-textbox {
            height: 46px;
            font-size: 16px;
        }

        .wp-login-clean .wp-login-install {
            flex-wrap: wrap;
        }

        .wp-login-clean .wp-login-install-info {
            flex-basis: calc(100% - 58px);
        }

        .wp-login-clean .wp-login-install-button {
            width: 100%;
            min-height: 40px;
        }
}
