:root {
    --purple-900: #240067;
    --purple-800: #3a078f;
    --purple-700: #5712b6;
    --purple-500: #8218d5;
    --pink-500: #eb1671;
    --ink: #151a4d;
    --muted: #5f6484;
    --line: #d9ddeb;
    --card: rgba(255,255,255,.94);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    background: linear-gradient( 135deg, rgba(238, 232, 255, 0.96), rgba(232, 242, 255, 0.96) );
}

.login-page {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 28px 24px 14px;
    box-sizing: border-box;
    background: linear-gradient( 135deg, rgba(111, 45, 189, 0.10), rgba(67, 131, 255, 0.08) );
}

.page-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(360px, 0.85fr);
    gap: 28px;
    width: min(1480px, 100%);
    max-width: 1480px;
    margin: auto;
    padding: 34px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.91);
    border: 1px solid rgba(255, 255, 255, 0.90);
    border-radius: 30px;
    box-shadow: 0 25px 70px rgba(43, 19, 99, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.brand-panel {
    min-width: 0;
}

.brand-header {
    text-align: center;
    padding: 0 18px 20px;
}

.orchid-mark {
    display: inline-grid;
    place-items: center;
    line-height: 1;
    color: #7b0fc2;
    text-shadow: 0 8px 20px rgba(106, 0, 174, .24);
}
/*.brand-header h1 {
    margin: -3px 0 2px;
    font-size: clamp(58px, 6.1vw, 68px);
    line-height: .98;
    letter-spacing: -5px;
    font-weight: 800;
}*/

.brand-header h1 {
    margin: -3px 0 2px;
    font-size: clamp(48px, min(6.1vw, 7vh), 68px);
    line-height: .98;
    letter-spacing: -5px;
    font-weight: 800;
}

    .brand-header h1 span:first-child {
        color: #2f057e;
    }

    .brand-header h1 span:last-child {
        background: linear-gradient(90deg, #420694, #6d10d4 72%, #ef1673);
        -webkit-background-clip: text;
        color: transparent;
    }

.brand-header h2 {
    margin: 14px 0 8px;
    font-size: clamp(22px, 2vw, 34px);
}

.brand-line {
    width: 78px;
    height: 4px;
    border-radius: 5px;
    margin: 14px auto;
    background: #7224d7;
}

.brand-header p {
    max-width: 780px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.55;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.module-card {
    min-height: 205px;
    padding: 22px 14px 18px;
    text-align: center;
    border: 1px solid rgba(218,221,235,.9);
    border-radius: 15px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 8px 22px rgba(30, 21, 96, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .module-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(30, 21, 96, .14);
    }

    .module-card > i {
        display: block;
        margin-bottom: 13px;
        font-size: 48px;
    }

    .module-card h3 {
        margin: 0 0 10px;
        font-size: 18px;
        line-height: 1.2;
    }

    .module-card p {
        margin: 0;
        font-size: 14px;
        line-height: 1.55;
        color: #29305d;
    }

.module-purple i, .module-purple h3 {
    color: #48149f;
}

.module-blue i, .module-blue h3 {
    color: #0870d4;
}

.module-green i, .module-green h3 {
    color: #009467;
}

.module-orange i, .module-orange h3 {
    color: #f17500;
}

.module-pink i, .module-pink h3 {
    color: #ed1f62;
}

.module-teal i, .module-teal h3 {
    color: #00a58f;
}

.module-indigo i, .module-indigo h3 {
    color: #4837e0;
}

.benefit-strip {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    padding: 14px 12px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(217,221,235,.86);
    border-radius: 14px;
}

    .benefit-strip div {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 6px 10px;
        border-right: 1px solid #d9ddeb;
        font-size: 14px;
    }

        .benefit-strip div:last-child {
            border-right: 0;
        }

    .benefit-strip i {
        font-size: 24px;
        color: #31129a;
    }

.login-panel-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    position: relative;
    width: 100%;
    /*padding: 34px 30px 24px;*/
    padding: clamp(18px,3vh,34px) 30px;
    /*border-radius: 26px;*/
    border-radius: clamp(20px, 1.8vw, 30px);
    background: var(--card);
    border: 1px solid rgba(224,226,237,.95);
    box-shadow: 0 24px 60px rgba(50, 15, 112, .17);
    text-align: center;
    overflow: hidden;
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg,#ec3b9c,#9d32ce 48%,#6631d7);
}

.employee-photo {
    /*width: 126px;
    height: 126px;*/
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4e16b9;
    box-shadow: 0 9px 24px rgba(51, 5, 132, .18);
    background: #f0ecfa;
}

.login-card h2 {
    margin: 18px 0 6px;
    font-size: 25px;
    color: #40109e;
}

.login-subtitle {
    margin: 0 0 15px;
    font-size: 17px;
}

.input-shell {
    min-height: 68px;
    margin-bottom: 16px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) 36px;
    align-items: center;
    gap: 10px;
    border: 1px solid #d7dbea;
    border-radius: 12px;
    background: rgba(255,255,255,.96);
    transition: border-color .2s, box-shadow .2s;
}

    .input-shell:focus-within {
        border-color: #6a1fc4;
        box-shadow: 0 0 0 4px rgba(106,31,196,.1);
    }

    .input-shell > i {
        font-size: 23px;
        color: #4b0faa;
    }

    .input-shell input {
        width: 100%;
        height: 64px;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 18px;
        color: #1d2353;
    }

        .input-shell input::placeholder {
            color: #85899f;
        }

.password-toggle {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #74798f;
    cursor: pointer;
}

    .password-toggle:hover {
        background: #f1edfa;
        color: #48149f;
    }

.sign-in-button {
    width: 100%;
    min-height: 68px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    /*background: linear-gradient(90deg, #4f0bb7, #8217d2 52%, #4b079d);*/
    background: linear-gradient(90deg, #5019a8 0%, #7520c2 50%, #e23a9a 100%);
    font-size: 21px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(79,11,183,.24);
}

    .sign-in-button i {
        margin-right: 11px;
    }

    .sign-in-button:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }

    .sign-in-button:disabled {
        opacity: .68;
        cursor: wait;
        transform: none;
    }

.login-message {
    display: none;
    margin: 0px;
    padding: 11px 13px;
    border-radius: 9px;
    text-align: left;
    font-size: 14px;
    text-align: center;
}

    .login-message.error {
        display: block;
        color: #9b1734;
        background: #fff0f4;
        border: 1px solid #ffc6d4;
    }

    .login-message.success {
        display: block;
        color: #096a49;
        background: #edfdf6;
        border: 1px solid #bdeedb;
    }

.divider {
    position: relative;
    margin: 24px 0;
    height: 26px;
}

    .divider:before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 1px;
        background: #d8dbea;
    }

    .divider span {
        position: relative;
        display: inline-grid;
        place-items: center;
        width: 46px;
        height: 46px;
        margin-top: -10px;
        border: 1px solid #daddeb;
        border-radius: 50%;
        background: #fff;
        font-size: 16px;
    }

.authorized-box {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    text-align: left;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7f3ff, #eee8ff);
}

    .authorized-box > i {
        font-size: 54px;
        color: #1739a5;
    }

    .authorized-box strong {
        display: block;
        color: #341090;
        font-size: 17px;
    }

    .authorized-box p {
        margin: 5px 0 0;
        font-size: 13px;
        line-height: 1.5;
    }

.trust-row {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #d8dbea;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

    .trust-row div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        font-size: 12px;
        color: #341090;
    }

    .trust-row i {
        font-size: 28px;
    }

footer {
    padding: 14px 0 0;
    text-align: center;
    color: #2f2953;
    font-size: 14px;
}

    footer strong {
        color: #5112ae;
    }

.login-loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
    background: rgba(20, 10, 56, .32);
    backdrop-filter: blur(3px);
}

    .login-loader.show {
        display: grid;
    }

.loader-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-radius: 12px;
    background: #fff;
    color: #48149f;
    box-shadow: 0 18px 45px rgba(0,0,0,.2);
}

    .loader-box i {
        font-size: 25px;
    }

.login-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 14px 10px 4px;
    margin: 0;
    color: black;
    font-size: 13px;
    text-align: center;
    display:flex;
    justify-content:center;
}

    .login-footer span {
        display: inline-block;
        margin-left: 8px;
    }

@media screen and (max-width: 767px) {

    .login-page {
        justify-content: center;
        min-height: 100dvh;
        padding: 16px 12px 10px;
        background-position: center top;
    }

    .page-shell {
        display: block;
        width: 100%;
        max-width: 520px;
        padding: 16px;
        border-radius: 24px;
    }

    .login-footer {
        padding-top: 12px;
        font-size: 12px;
    }

        .login-footer span {
            display: block;
        }
}

@media (max-width: 1180px) {
    .page-shell {
        grid-template-columns: 1fr 390px;
        padding: 20px;
    }

    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-card {
        min-height: 175px;
    }

    .benefit-strip {
        grid-template-columns: repeat(2, 1fr);
    }

        .benefit-strip div:nth-child(2) {
            border-right: 0;
        }
}

@media (max-width: 860px) {
    body {
        background: linear-gradient(180deg, rgba(233,224,255,.55), rgba(248,245,255,.82)), url("Images/MyOrchid-Desktop-Reference.png") center center / cover no-repeat;
    }

    .login-page {
        padding: 14px;
    }

    .page-shell {
        display: block;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }
    /*.brand-panel { margin-bottom: 18px; }*/
    .brand-header {
        padding: 18px 10px 8px;
    }
        /*.orchid-mark { width: 64px; height: 54px; font-size: 54px; }*/
        .brand-header h1 {
            font-size: 54px;
        }

        .brand-header h2 {
            font-size: 20px;
            margin-top: 10px;
        }

        .brand-header p, .module-grid, .benefit-strip {
            display: none;
        }

    .login-card {
        max-width: 560px;
        margin: 0 auto;
        padding: 22px 22px 22px;
        border-radius: 24px;
    }

    /*.employee-photo {
        width: 112px;
        height: 112px;
    }*/

    .login-card h2 {
        font-size: 23px;
    }

    .trust-row {
        display: none;
    }

    footer {
        padding-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 8px;
    }

    .brand-header h1 {
        font-size: 54px;
    }

    .brand-header h2 {
        font-size: 17px;
    }

    .login-card {
        padding: 24px 16px 18px;
    }

    .login-card h2 {
        margin-top: 14px;
        font-size: 27px;
    }

    .login-subtitle {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .input-shell {
        min-height: 60px;
        padding: 0 12px;
    }

        .input-shell input {
            height: 58px;
            font-size: 16px;
        }

    .sign-in-button {
        min-height: 60px;
        font-size: 19px;
    }

    .authorized-box {
        padding: 14px;
        gap: 13px;
    }

        .authorized-box > i {
            font-size: 43px;
        }

        .authorized-box strong {
            font-size: 15px;
        }

        .authorized-box p {
            font-size: 12px;
        }
}

/* Compact desktop/laptop screens such as 1366 x 768 */
@media screen and (min-width:861px) and (max-height:820px) {

    .login-page {
        justify-content: center;
        height: 100dvh;
        min-height: 100dvh;
        padding: 6px 14px 0;
        overflow: hidden;
    }

    .page-shell {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 370px);
        gap: 18px;
        max-width: 1320px;
        margin: 0 auto;
        padding: 16px 18px;
        border-radius: 22px;
    }

    .login-footer {
        padding: 3px 10px 0;
        margin: 0;
        line-height: 1.2;
        font-size: 11px;
    }

    .brand-header {
        padding: 0 10px 8px;
    }

        .brand-header h1 {
            margin: 0;
            font-size: 48px;
            letter-spacing: -4px;
        }

        .brand-header h2 {
            margin: 6px 0 4px;
            font-size: 20px;
        }

    .brand-line {
        width: 65px;
        height: 3px;
        margin: 8px auto;
    }

    .brand-header p {
        font-size: 14px;
        line-height: 1.4;
    }

    .module-grid {
        gap: 10px;
    }

    .module-card {
        min-height: 142px;
        padding: 13px 10px 11px;
        border-radius: 12px;
    }

        .module-card > i {
            margin-bottom: 8px;
            font-size: 34px;
        }

        .module-card h3 {
            margin-bottom: 6px;
            font-size: 15px;
        }

        .module-card p {
            font-size: 12px;
            line-height: 1.35;
        }

    .benefit-strip {
        margin-top: 10px;
        padding: 7px 8px;
    }

        .benefit-strip div {
            gap: 7px;
            padding: 4px 6px;
            font-size: 12px;
        }

        .benefit-strip i {
            font-size: 19px;
        }

    .login-card {
        padding: 17px 20px 15px;
        border-radius: 20px;
    }

    .login-card h2 {
        margin: 9px 0 3px;
        font-size: 21px;
    }

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

    .input-shell {
        min-height: 50px;
        margin-bottom: 10px;
        padding: 0 12px;
        grid-template-columns: 24px minmax(0, 1fr) 32px;
        gap: 7px;
    }

        .input-shell > i {
            font-size: 19px;
        }

        .input-shell input {
            height: 48px;
            font-size: 15px;
        }

    .password-toggle {
        width: 32px;
        height: 32px;
    }

    .sign-in-button {
        min-height: 50px;
        font-size: 17px;
    }

    .divider {
        height: 20px;
        margin: 14px 0;
    }

        .divider span {
            width: 36px;
            height: 36px;
            margin-top: -8px;
            font-size: 13px;
        }

    .authorized-box {
        gap: 12px;
        padding: 11px 13px;
    }

        .authorized-box > i {
            font-size: 38px;
        }

        .authorized-box strong {
            font-size: 14px;
        }

        .authorized-box p {
            margin-top: 3px;
            font-size: 11px;
            line-height: 1.35;
        }

    .trust-row {
        margin-top: 12px;
        padding-top: 10px;
        gap: 5px;
    }

        .trust-row div {
            gap: 4px;
            font-size: 10px;
        }

        .trust-row i {
            font-size: 21px;
        }

    footer {
        padding-top: 7px;
        font-size: 11px;
    }
}

/* ============================================================
   FINAL MOBILE VIEWPORT FIT
   Keeps the login page inside the visible browser window on
   iPhone, Android phones and other small-screen devices.
   Keep this section at the very end of the stylesheet.
   ============================================================ */

@supports (height: 100dvh) {
    .login-page {
        min-height: 100dvh;
    }
}

@media screen and (max-width: 767.98px) {

    html,
    body {
        width: 100%;
        min-width: 100%;
        height: 100%;
        min-height: 100%;
        overflow-x: hidden;
    }

    body {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        background-attachment: scroll !important;
    }

    .login-page {
        width: 100%;
        min-width: 0;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        padding-top: max(10px, env(safe-area-inset-top));
        padding-right: max(10px, env(safe-area-inset-right));
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        padding-left: max(10px, env(safe-area-inset-left));
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .page-shell {
        width: 100%;
        max-width: 520px;
        min-width: 0;
        margin: 0 auto;
    }

    .brand-panel,
    .login-panel-wrap,
    .login-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    img,
    svg,
    video,
    canvas {
        max-width: 100%;
    }

    .employee-photo {
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .input-shell,
    .input-shell input,
    .sign-in-button {
        max-width: 100%;
        min-width: 0;
    }

    .login-footer {
        flex: 0 0 auto;
        width: 100%;
        padding-bottom: max(4px, env(safe-area-inset-bottom));
    }
}

@media screen and (max-width: 480px) {
    .login-page {
        padding-top: max(8px, env(safe-area-inset-top));
        padding-right: max(8px, env(safe-area-inset-right));
        padding-bottom: max(8px, env(safe-area-inset-bottom));
        padding-left: max(8px, env(safe-area-inset-left));
    }

    .page-shell {
        padding: 10px;
        border-radius: 18px;
    }

    .login-card {
        width: 100%;
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* Prevent iOS Safari from zooming when an input receives focus. */
@supports (-webkit-touch-callout: none) {
    @media screen and (max-width: 767.98px) {
        .input-shell input,
        input,
        select,
        textarea {
            font-size: 16px !important;
        }
    }
}

/* ============================================================
   IOS / PWA INPUT AUTO-ZOOM FIX
   Global MyOrchid mobile rule

   iOS Safari/PWA may zoom when an editable control has a
   computed font-size below 16px.
   ============================================================ */

@media screen and (max-width: 767.98px) {

    input:not([type="checkbox"]):not([type="radio"]),
    textarea,
    select,
    [contenteditable="true"],
    .form-control,
    .select2-container .select2-search__field {
        font-size: 16px !important;
    }
}