﻿/* ==============================================================
   SERVAGYA PAYROLL - LOGIN PAGE
   ============================================================== */


/* --------------------------------------------------------------
   THEME
   -------------------------------------------------------------- */

:root {
    --servagya-navy: #0b2f63;
    --servagya-blue: #0868d9;
    --servagya-blue-light: #2494f2;

    --servagya-text: #183458;
    --servagya-muted: #61748c;

    --servagya-border: #dbe6f2;

    --servagya-soft-blue: #f4f9ff;
    --servagya-soft-blue-2: #eaf5ff;

    --servagya-warning: #f5ad16;
    --servagya-green: #179847;

    --servagya-white: #ffffff;
}


/* --------------------------------------------------------------
   PAGE
   -------------------------------------------------------------- */

html,
body {
    min-height: 100%;
}

body.servagya-login-page {
    margin: 0;

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    color: var(--servagya-text);

    background:
        radial-gradient(
            circle at 8% 20%,
            rgba(103, 181, 244, 0.13) 0,
            rgba(103, 181, 244, 0.05) 18%,
            transparent 36%
        ),
        radial-gradient(
            circle at 94% 65%,
            rgba(61, 163, 240, 0.12) 0,
            transparent 33%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7fbff 35%,
            #eef7ff 76%,
            #ffffff 100%
        );

    background-attachment: fixed;
}


/* Whole WebForms form behaves as the page container */

.login-page-form {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: clip;
}

/* Soft decorative background */

.login-page-form::before {
    content: "";

    position: fixed;

    width: 520px;
    height: 520px;

    left: -280px;
    top: 330px;

    border-radius: 50%;

    background:
        rgba(103, 181, 244, 0.07);

    pointer-events: none;

    z-index: 0;
}


.login-page-form::after {
    content: "";

    position: fixed;

    width: 620px;
    height: 620px;

    right: -360px;
    bottom: -280px;

    border-radius: 50%;

    background:
        rgba(35, 145, 234, 0.07);

    pointer-events: none;

    z-index: 0;
}



/* ==============================================================
   HEADER
   ============================================================== */

.login-brand-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: linear-gradient( 110deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 255, 0.98) 58%, rgba(236, 247, 255, 0.98) 100% );
    padding: 8px 0 8px 0;
    box-shadow: 0 3px 12px rgba(34, 77, 121, 0.08);
}

.login-header-container {
    width: 100%;
    max-width: 1540px;

    margin: 0 auto;

    padding-left: 44px;
    padding-right: 44px;
}


.login-header-grid {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 35px;
}


/* --------------------------------------------------------------
   BRAND LEFT
   -------------------------------------------------------------- */

.login-brand-area {
    display: flex;

    align-items: center;

    min-width: 0;
}


.login-logo-link {
    flex: 0 0 auto;

    display: block;

    text-decoration: none;
}


.login-logo {
    width: 130px;
    height: auto;
    display: block;
    margin-right: 18px;
}

.login-brand-text {
    min-width: 0;
}


.login-product-name {
    color: var(--servagya-navy);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.4px;
    margin-bottom: 3px;
}

.login-company-name {
    color: #435d7c;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.20;
    margin-bottom: 2px;
}

.login-tagline {
    color: #60738d;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
}

/* --------------------------------------------------------------
   CONTACT RIGHT
   -------------------------------------------------------------- */

.login-contact-area {
    flex: 0 0 auto;
    min-width: 310px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-contact-row {
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: var(--servagya-navy);
    font-size: 13px;
    line-height: 1.15;
}

.login-contact-icon {
    width: 27px;

    color: #0566c8;

    font-size: 19px;

    text-align: center;

    margin-right: 7px;
}


.login-mobile-icon {
    font-size: 17px;
}


.login-contact-label {
    font-weight: 700;

    margin-right: 6px;
}


.login-contact-value {
    color: #175caa;

    font-weight: 400;

    text-decoration: none;
}


a.login-contact-value:hover {
    color: #003f89;

    text-decoration: underline;
}


/* Thin professional divider */

.login-header-divider {
    display: none;
}


/* ==============================================================
   MAIN CONTENT
   ============================================================== */

.login-main {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    width: 100%;
    padding-top: 8px;
    padding-bottom: 0;
}

/*
   Only containers within the Login page are widened.
   This replaces the old global .container rule.
*/

.login-main > .container,
.login-main .container.login-page-container {
    width: 100%;

    max-width: 1540px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 44px;
    padding-right: 44px;
}



/* ==============================================================
   CARDS
   ============================================================== */

.login-main .card {
    border: 1px solid rgba(208, 222, 237, 0.86);

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.97);

    overflow: hidden;
}


.login-main .custom-shadow {
    box-shadow:
        0 10px 30px rgba(34, 77, 121, 0.11);
}


    .login-main .card-header {
        height: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .login-main .card-title {
        margin: 0;
        font-size: 19px;
        font-weight: 700;
        line-height: 1.10;
    }

/* --------------------------------------------------------------
   Existing What's New header compatibility
   -------------------------------------------------------------- */

    .login-main .card-header.bg-warning {
        background: linear-gradient( 100deg, #ff9f1c 0%, #ffc107 100% ) !important;
    }

        .login-main .card-header.bg-warning .card-title {
            color: #ffffff !important;
        }

/* --------------------------------------------------------------
   Existing Gazette header compatibility
   -------------------------------------------------------------- */

    .login-main .card-header.bg-success {
        background: linear-gradient( 100deg, #119c52 0%, #39c86f 100% ) !important;
    }

        .login-main .card-header.bg-success .card-title {
            color: #ffffff !important;
        }


/* --------------------------------------------------------------
   Login header
   -------------------------------------------------------------- */

.login-main .card-header.bg-primary {
        background: linear-gradient( 100deg, #075fc7 0%, #2196f3 100% ) !important;
    }

.login-main .card-header.bg-primary .card-title {
    color: #ffffff !important;
}



/* ==============================================================
   CARD BODY
   ============================================================== */

    .login-main .card-with-scrollbar .card-body {
        position: relative;
        height: 408px;
        min-height: 408px;
        padding: 18px 22px;
        overflow: hidden;
    }
/* ==============================================================
   RUNNING TEXT / MARQUEE
   ============================================================== */

.running-text {
    position: absolute;

    bottom: 0;
    left: 25px;
    right: 25px;

    overflow: visible;

    animation-name: scrollUp;
    animation-timing-function: linear;
    animation-iteration-count: infinite;

    animation-duration:
        var(--scroll-duration, 30s);

    will-change: transform;
}

.marquee-card .card-body {
    height: 372px !important;
    min-height: 372px !important;
}


/* Fallback timings */

.running-text.software {
    --scroll-duration: 28s;
}

.gazette-card-footer .info-card-link {
    color: #148542;
}

    .gazette-card-footer .info-card-link:hover {
        color: #0b6c32;
    }

.running-text.gazette {
    --scroll-duration: 22s;
}


/*
   IMPORTANT:
   Only the running text in the card being hovered pauses.
*/

.login-main .card-body:hover .running-text {
    animation-play-state: paused;
}


/* Animation end distance is calculated
   by existing splogin JavaScript */

@keyframes scrollUp {

    0% {
        transform: translateY(100%);
    }

    100% {
        transform:
            translateY(
                var(--scroll-end, -400px)
            );
    }
}



/* ==============================================================
   NEWS ITEMS
   ============================================================== */

.news-item,
.note-item {
    position: relative;

    margin: 0;

    padding: 14px 4px 15px 25px;
}


/* Red information dot */

.news-item::before,
.note-item::before {
    content: "";

    position: absolute;

    left: 3px;
    top: 21px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #e21d25;
}


.news-date,
.note-date {
    color: #71839a;

    font-size: 13px;
    font-weight: 500;

    margin-bottom: 3px;
}


.news-message,
.note-message {
    color: #173a6b;

    font-size: 15px;
    font-weight: 600;

    line-height: 1.42;
}


.separator {
    border: 0;

    border-top: 1px solid #e1e9f2;

    margin: 15px 0 0 0;
}



/* ==============================================================
   LOGIN FORM
   ============================================================== */

.loginformlabelfont {
    display: block;

    color: var(--servagya-navy);

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 6px;
}


.login-main .form-control {
    min-height: 46px;

    padding: 10px 13px;

    color: #253d5a;

    background: #fbfdff;

    border: 1px solid #ccd9e7;

    border-radius: 7px;

    font-size: 14px;

    box-shadow: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}


.login-main .form-control:focus {
    background: #ffffff;

    border-color: #4a9ee7;

    box-shadow:
        0 0 0 3px rgba(37, 145, 233, 0.12);

    outline: none;
}


.login-main .form-control::placeholder {
    color: #91a0b2;

    opacity: 1;
}



/* ==============================================================
   LOGIN BUTTON
   ============================================================== */

.btn-3d {
    position: relative;

    border: none !important;

    min-height: 46px;

    border-radius: 8px !important;

    font-size: 16px;
    font-weight: 600;

    background:
        linear-gradient(
            100deg,
            #0767dd 0%,
            #2298f7 100%
        ) !important;

    box-shadow:
        0 7px 15px rgba(12, 100, 210, 0.19) !important;

    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}


.btn-3d:hover {
    transform: translateY(-1px);

    box-shadow:
        0 9px 18px rgba(12, 100, 210, 0.25) !important;
}


.btn-3d:active {
    transform: translateY(0);
}



/* ==============================================================
   FUTURE VIEW ALL FOOTER
   Will be used when splogin.aspx is redesigned.
   ============================================================== */

.info-card-footer {
    height: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    box-sizing: border-box;
    border-top: 1px solid #e5edf5;
    background: rgba(249, 252, 255, 0.98);
}

.software-card-footer {
    background:
        linear-gradient(
            90deg,
            rgba(255, 246, 221, 0.92),
            rgba(255, 252, 245, 0.96)
        );
}


.gazette-card-footer {
    background:
        linear-gradient(
            90deg,
            rgba(232, 249, 237, 0.92),
            rgba(248, 253, 249, 0.96)
        );
}


.info-card-link {
    color: #0868d9;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.info-card-link:hover {
    color: #064d9c;

    text-decoration: underline;
}



/* ==============================================================
   DISCLAIMER
   Will be used in redesigned splogin.aspx
   ============================================================== */

.login-disclaimer {
    width: 100%;
    margin-top: 4px;
    padding: 8px 4px 0 4px;
    border-top: 1px solid #bfcddd;
    color: #405777;
    font-size: 13px;
    line-height: 1.35;
}

.login-disclaimer-inner {
    display: flex;

    align-items: flex-start;

    gap: 9px;
}


.login-disclaimer-icon {
    flex: 0 0 auto;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: #bf7600;

    font-size: 13px;
    font-weight: 700;

    margin-top: 1px;
}


.login-disclaimer-title {
    color: #a86600;

    font-weight: 700;
}



/* ==============================================================
   FOOTER
   ============================================================== */

.login-footer {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 100%;
    margin-top: -2px;
    background: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(199, 216, 233, 0.72);
}


.login-footer-container {
    max-width: 1540px;
    margin: 0 auto;
    padding: 3px 44px 3px 44px;
    text-align: center;
    color: #000000;
    font-size: 12px;
    line-height: 1.25;
}


/* ==============================================================
   LEGACY CLASSES RETAINED FOR COMPATIBILITY
   ============================================================== */

.bg-maroon {
    background-color: #800000;
}


.bg-dark-maroon {
    background-color: #800000;
}


.box-shadow,
.login-boxshadow {
    box-shadow:
        0 8px 25px rgba(27, 66, 108, 0.14);
}



/* ==============================================================
   RESPONSIVE
   ============================================================== */

@media (max-width: 1199px) {

    .login-header-container,
    .login-main > .container,
    .login-main .container.login-page-container,
    .login-footer-container {
        padding-left: 25px;
        padding-right: 25px;
    }


    .login-logo {
        width: 145px;

        margin-right: 17px;
    }


    .login-product-name {
        font-size: 30px;
    }


    .login-company-name {
        font-size: 17px;
    }


    .login-tagline {
        font-size: 13px;
    }


    .login-contact-area {
        min-width: 280px;
    }


    .login-contact-row {
        font-size: 13px;
    }

}



@media (max-width: 991px) {

    .login-header-grid {
        flex-direction: column;

        align-items: flex-start;

        gap: 16px;
    }


    .login-contact-area {
        width: 100%;

        min-width: 0;

        flex-direction: row;
        flex-wrap: wrap;

        gap: 8px 22px;

        padding-left: 2px;
    }


    .login-main .card-with-scrollbar {
        margin-bottom: 22px;
    }


    .login-main .card-with-scrollbar .card-body {
        height: 470px;
    }

}



@media (max-width: 767px) {

    .login-brand-header {
        padding-top: 13px;
        padding-bottom: 13px;
    }


    .login-header-container,
    .login-main > .container,
    .login-main .container.login-page-container,
    .login-footer-container {
        padding-left: 15px;
        padding-right: 15px;
    }


    .login-brand-area {
        align-items: flex-start;
    }


    .login-logo {
        width: 105px;

        margin-right: 12px;
    }


    .login-product-name {
        font-size: 24px;
    }


    .login-company-name {
        font-size: 14px;

        line-height: 1.3;
    }


    .login-tagline {
        font-size: 12px;

        margin-top: 3px;
    }


    .login-contact-area {
        display: block;
    }


    .login-contact-row {
        margin-bottom: 7px;

        white-space: normal;
    }


    .login-main {
        padding-top: 15px;
    }


    .login-main .card-with-scrollbar .card-body {
        min-height: 420px;
        height: 420px;
    }


    .login-main .card-title {
        font-size: 19px;
    }


    .running-text {
        left: 18px;
        right: 18px;
    }

}



@media (max-width: 480px) {

    .login-logo {
        width: 82px;
    }


    .login-product-name {
        font-size: 21px;
    }


    .login-company-name {
        font-size: 13px;
    }


    .login-tagline {
        font-size: 11px;
    }


    .login-contact-row {
        font-size: 12px;
    }


    .login-main .card-with-scrollbar .card-body {
        padding-left: 18px;
        padding-right: 18px;
    }

}

/* ==============================================================
   ACCOUNT LOGIN CARD
   COMPACT VERTICAL LAYOUT
   ============================================================== */

.login-account-card .card-body {
    padding: 13px 24px 10px 24px !important;
}

.login-account-card .card-body {
    height: 404px !important;
    min-height: 404px !important;
    padding: 13px 24px 10px 24px !important;
}
/* --------------------------------------------------------------
   LABELS
   -------------------------------------------------------------- */

.login-account-card .loginformlabelfont {
    display: block;
    margin: 0 0 3px 0;
    color: var(--servagya-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.20;
}


/* Gap between Email field and Password label */

.login-account-card .login-next-label {
    margin-top: 7px;
}


/* --------------------------------------------------------------
   INPUT BOXES
   -------------------------------------------------------------- */

.login-account-card .form-control {
    min-height: 40px;
    height: 40px;
    padding: 7px 12px;
    font-size: 14px;
    background-color: #f8fbff;
    border: 1px solid #c8d8e8;
    border-radius: 7px;
}

    .login-account-card .form-control:focus {
        background-color: #ffffff;
        border-color: #2d8de0;
        box-shadow: 0 0 0 3px rgba(45, 141, 224, 0.10);
    }

/* --------------------------------------------------------------
   SECURITY VERIFICATION
   Same vertical rhythm as Password
   -------------------------------------------------------------- */

.login-security-block {
    margin-top: 7px;
}


.login-captcha-row {
    margin-top: 4px;
}


/* --------------------------------------------------------------
   CAPTCHA IMAGE
   Shorter and wider
   -------------------------------------------------------------- */

.login-captcha-image-area {
    flex: 1 1 auto;
    min-width: 0;
}


.login-captcha-image {
    display: block;
    width: 100%;
    height: 56px;
    object-fit: contain;
    border: 1px solid #ccd9e7;
    border-radius: 7px;
    background-color: #ffffff;
}


/* --------------------------------------------------------------
   CAPTCHA REFRESH
   -------------------------------------------------------------- */

.login-captcha-refresh {
    flex: 0 0 auto;
    margin-left: 11px;
    text-align: center;
}


.login-refresh-button {
    padding: 0 !important;
    color: #0868d9 !important;
    font-size: 12px;
    line-height: 1.15;
    text-decoration: none !important;
    white-space: nowrap;
}


.login-refresh-icon {
    display: block;
    margin-bottom: 1px;
    font-size: 20px;
    line-height: 1;
}


/* --------------------------------------------------------------
   CAPTCHA ENTRY
   -------------------------------------------------------------- */

.login-account-card .login-captcha-input {
    margin-top: 5px;
    margin-bottom: 0;
}


/* --------------------------------------------------------------
   LOGIN BUTTON
   -------------------------------------------------------------- */

.login-account-card .login-submit-button {
    min-height: 40px;
    margin-top: 7px !important;
    margin-bottom: 0 !important;
    padding-top: 7px;
    padding-bottom: 7px;
    background: linear-gradient( 90deg, #0868dc 0%, #2196f3 100% ) !important;
    border: none !important;
    box-shadow: 0 7px 15px rgba(8, 104, 220, 0.18) !important;
}

.card-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-family: "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 21px;
    line-height: 1;
}

.login-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #ffffff;
    line-height: 1;
    transform: translateY(2px);
}


/* ==============================================================
   WHAT'S NEW IN SOFTWARE
   DATE + SUBJECT + CONTENT
   ============================================================== */

.software-news-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 2px;
}


/* --------------------------------------------------------------
   DATE BADGE
   -------------------------------------------------------------- */

.software-news-date {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: linear-gradient( 145deg, #fff6df 0%, #ffe9c7 100% );
    color: #d55d00;
    text-align: center;
    line-height: 1;
}


.software-news-day {
    display: block;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 3px;
}


.software-news-month {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}


.software-news-year {
    display: block;
    font-size: 10px;
    font-weight: 600;
}


/* --------------------------------------------------------------
   TEXT AREA
   -------------------------------------------------------------- */

.software-news-text {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 1px;
}


.software-news-subject {
    color: #12366c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.30;
    margin-bottom: 3px;
}


.software-news-content {
    color: #536b89;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.35;
}


/* --------------------------------------------------------------
   SEPARATOR
   -------------------------------------------------------------- */

.software-news-divider {
    height: 1px;
    margin: 0 2px;
    background-color: #e3eaf2;
}

/* ==============================================================
   GAZETTE NOTIFICATION
   DATE + SUBJECT
   ============================================================== */

.gazette-news-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 2px;
}


/* --------------------------------------------------------------
   DATE BADGE
   -------------------------------------------------------------- */

.gazette-news-date {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: linear-gradient( 145deg, #edf9ef 0%, #dff3e4 100% );
    color: #10873e;
    text-align: center;
    line-height: 1;
}


.gazette-news-day {
    display: block;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 3px;
}


.gazette-news-month {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}


.gazette-news-year {
    display: block;
    font-size: 10px;
    font-weight: 600;
}


/* --------------------------------------------------------------
   SUBJECT
   -------------------------------------------------------------- */

.gazette-news-text {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 3px;
}


.gazette-news-subject {
    color: #12366c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.38;
}


/* --------------------------------------------------------------
   SEPARATOR
   -------------------------------------------------------------- */

.gazette-news-divider {
    height: 1px;
    margin: 0 2px;
    background-color: #e3eaf2;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.software-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}


.software-pager-pages {
    display: flex;
    align-items: center;
    gap: 5px;
}


.software-pager-button,
.software-page-number {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #cfdce9;
    border-radius: 5px;
    background-color: #ffffff;
    color: #0b5fb7;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}


    .software-pager-button:hover,
    .software-page-number:hover {
        background-color: #edf6ff;
        border-color: #83b7e5;
        color: #084b91;
        text-decoration: none;
    }


    .software-page-number.current {
        background: linear-gradient( 100deg, #ff9f1c 0%, #ffc107 100% );
        border-color: #f5a400;
        color: #ffffff;
        cursor: default;
    }


    .software-page-number.dots {
        border: none;
        background: transparent;
        color: #7b8998;
        padding: 0 3px;
        min-width: auto;
    }


.software-pager-disabled {
    opacity: 0.42;
    pointer-events: none;
    cursor: default;
}


.software-page-info {
    margin-top: 7px;
    text-align: center;
    color: #6c7e91;
    font-size: 11.5px;
}


@media (max-width: 600px) {

    .software-pager {
        flex-wrap: wrap;
    }
}