/* =========================================================
   NUSUON WORKSTATION PORTAL
   FILE: crm/assets/css/entrance.css
   VERSION: 1.1 — ALIGNMENT ONLY

   PURPOSE:
   - Preserve existing V1.0 visual design
   - Equal-width, equal-height desktop panels
   - Align marketing and sign-in top/bottom edges
   - Preserve master theme colors
   - Preserve mobile responsiveness
   - No JS, PHP, authentication or MFA changes
========================================================= */


/* =========================================================
   01 — PAGE CONTAINER
========================================================= */

body:has(.nw-entry) {
    margin: 0;
    min-height: 100vh;
    background: var(--nw-background);
}

.nw-entry {
    display: flex;
    flex-direction: column;

    width: min(1120px, calc(100% - 48px));
    min-height: 100vh;

    margin: 0 auto;
    padding: 28px 0 18px;

    color: var(--nw-text);
}


/* =========================================================
   02 — PORTAL TITLE
========================================================= */

.nw-portal-heading {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 46px;

    padding: 0 0 14px;

    border-bottom: 1px solid var(--nw-border);

    color: var(--nw-green);

    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.025em;
}


/* =========================================================
   03 — EQUAL TWO-COLUMN LAYOUT
========================================================= */

.nw-center {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: stretch;

    gap: 34px;

    width: 100%;
    margin: auto 0;

    padding: 28px 0;
}

.nw-marketing,
.nw-login {
    min-width: 0;
    max-width: 100%;
}


/* =========================================================
   04 — LEFT MARKETING PANEL
========================================================= */

.nw-marketing {
    display: flex;
    flex-direction: column;

    gap: 14px;

    width: 100%;
    height: 100%;

    padding: 26px 30px;

    background: var(--nw-white);

    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius);

    box-shadow: var(--nw-shadow);
}

.nw-marketing > * {
    min-width: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.nw-kicker {
    color: var(--nw-green);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.nw-marketing h2 {
    color: var(--nw-blue);

    font-size: clamp(23px, 2.7vw, 34px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.nw-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 8px;

    color: var(--nw-green);

    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
}

.nw-unit {
    color: var(--nw-blue);

    font-size: 13px;
    font-weight: 500;
}

.nw-description {
    color: var(--nw-text);

    font-size: 13px;
    line-height: 1.65;
}

.nw-benefits {
    display: grid;
    gap: 9px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.nw-benefits li {
    position: relative;

    padding-left: 23px;

    color: var(--nw-text);

    font-size: 12px;
    line-height: 1.5;
}

.nw-benefits li::before {
    content: "✓";

    position: absolute;
    top: 0;
    left: 0;

    color: var(--nw-green);

    font-weight: 800;
}

.nw-fineprint {
    color: var(--nw-muted);

    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}

/* Keep CTA near bottom without changing its design */

.nw-marketing .nw-gold-cta {
    margin-top: auto;
}


/* =========================================================
   05 — RIGHT SIGN-IN PANEL
========================================================= */

.nw-login {
    display: flex;
    align-items: stretch;
    justify-content: stretch;

    width: 100%;
    height: 100%;
}

.nw-login .crm-auth {
    display: flex;
    align-items: stretch;

    width: 100%;
    min-width: 0;
    max-width: 100%;

    min-height: 0;
    height: 100%;

    margin: 0;
    padding: 0;

    background: transparent;
}

.nw-login .crm-auth-panel {
    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: var(--nw-white);

    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius);

    box-shadow: var(--nw-shadow);
}

.nw-login .crm-auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    width: 100%;
    min-height: 112px;

    margin: 0;
    padding: 24px 20px;

    background: var(--nw-green);
    text-align: center;
}

.nw-login .crm-auth-header h1 {
    margin: 0;

    color: var(--nw-white);

    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.nw-login .crm-auth-header p {
    margin: 0;

    color: var(--nw-white);

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   06 — SIGN-IN FORM
========================================================= */

.nw-login .crm-signin-form {
    display: flex;
    flex-direction: column;

    gap: 15px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 26px 28px 18px;

    background: var(--nw-white);
}

.nw-login .crm-field {
    display: flex;
    flex-direction: column;

    gap: 7px;

    width: 100%;
    min-width: 0;
    margin: 0;
}

.nw-login .crm-field label {
    color: var(--nw-blue);

    font-size: 12px;
    font-weight: 700;
}

.nw-login .crm-field input {
    display: block;

    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;

    margin: 0;
    padding: 11px 13px;

    background: var(--nw-white);
    color: var(--nw-text);

    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius-small);

    font-size: 13px;
}

.nw-login .crm-field input:focus {
    border-color: var(--nw-green);

    outline: 2px solid var(--nw-green-light);
    outline-offset: 0;
}

.nw-login .crm-signin-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 46px;

    margin: 0;
    padding: 12px 18px;

    background: var(--nw-green);
    color: var(--nw-white);

    border: 0;
    border-radius: var(--nw-radius-small);

    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.nw-login .crm-signin-button:hover {
    background: var(--nw-green-dark);
}

.nw-login .crm-auth-message {
    margin: 0;

    color: var(--nw-muted);

    font-size: 11px;
    text-align: center;
    line-height: 1.5;
}

/* Distribute available space inside sign-in panel */

.nw-login .crm-signin-form {
    flex: 1;
    justify-content: center;
}


/* =========================================================
   07 — RESET / PASSKEY OPTIONS
========================================================= */

.nw-security {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px 14px;

    padding: 0 20px 16px;

    color: var(--nw-blue);

    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.nw-security span {
    display: inline-block;
}


/* =========================================================
   08 — SECURE PORTAL LABEL
========================================================= */

.nw-login .nw-secure-label {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 49px;

    padding: 13px 15px;

    background: var(--nw-green-light);

    border-top: 1px solid var(--nw-border);

    color: var(--nw-green-dark);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-align: center;
}


/* =========================================================
   09 — COMPACT ADSENSE RESERVATION
========================================================= */

.nw-ad-area {
    width: 100%;
    max-width: 728px;

    margin: 0 auto;

    text-align: center;
}

.nw-ad-area:empty {
    display: none;
}


/* =========================================================
   10 — CORPORATE FOOTER
========================================================= */

.nw-footer {
    width: 100%;

    padding-top: 16px;

    border-top: 1px solid var(--nw-border);
}

.nw-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 14px;

    padding-bottom: 15px;
}

.nw-footer-title {
    margin: 0 0 3px;

    color: var(--nw-blue);

    font-size: 12px;
    font-weight: 800;
}

.nw-footer-copy {
    margin: 0;

    color: var(--nw-muted);

    font-size: 11px;
}

.nw-footer-top > a {
    color: var(--nw-green);

    font-size: 12px;
    font-weight: 700;
}

.nw-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 10px 20px;

    padding: 12px 0 0;

    border-top: 1px solid var(--nw-border);

    color: var(--nw-muted);

    font-size: 10px;
}

.nw-footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px 18px;
}

.nw-footer-links a {
    color: var(--nw-blue);

    font-size: 10px;
}


/* =========================================================
   11 — TABLET
========================================================= */

@media (max-width: 900px) {

    .nw-entry {
        width: min(760px, calc(100% - 36px));
    }

    .nw-center {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 24px 0;
    }

    .nw-marketing {
        padding: 25px;
    }

    .nw-login {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .nw-login .crm-auth,
    .nw-login .crm-auth-panel {
        height: auto;
    }

    .nw-login .crm-signin-form {
        flex: none;
        justify-content: flex-start;
    }

    .nw-marketing .nw-gold-cta {
        margin-top: 0;
    }

}


/* =========================================================
   12 — MOBILE
========================================================= */

@media (max-width: 540px) {

    .nw-entry {
        width: calc(100% - 28px);
        padding-top: 18px;
    }

    .nw-portal-heading {
        min-height: 40px;

        font-size: 15px;
        letter-spacing: 0.01em;
    }

    .nw-center {
        gap: 16px;
        padding: 18px 0;
    }

    .nw-marketing {
        gap: 12px;
        padding: 21px 18px;
    }

    .nw-marketing h2 {
        font-size: 26px;
    }

    .nw-price {
        font-size: 30px;
    }

    .nw-login .crm-auth-header {
        min-height: 100px;
        padding: 20px 14px;
    }

    .nw-login .crm-auth-header h1 {
        font-size: 22px;
    }

    .nw-login .crm-signin-form {
        padding: 22px 18px 16px;
    }

    .nw-login .crm-field input {
        font-size: 16px;
    }

    .nw-footer-top,
    .nw-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =========================================================
   END — ENTRANCE.CSS V1.1
========================================================= */