﻿:root {
    --primary: #0084c8;
    --primary-dark: #006fa9;
    --text: #1f2933;
    --muted: #667085;
    --border: #d9e0e7;
    --input-bg: #f7f8fa;
    --page-bg: #ffffff;
    --danger: #c62828;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    /*font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;*/
    font-family: roboto;
    color: var(--text);
    background: var(--page-bg);
}

body {
    min-height: 100vh;
}

    /* target: dianomi tracking pixel, adds gap to bottom of page */
    body > img {
        position: absolute;
        left: -1000px;
    }

a {
    color: var(--primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ====================================================
           PAGE LAYOUT
        ==================================================== */

.login-page {
    --content-min-width: 500px;
    min-height: 100vh;
    display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(
			var(--content-min-width),
			0.85fr
		);
}

/* ====================================================
           LEFT HERO PANEL
        ==================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-image: linear-gradient( 180deg, rgba(0, 91, 145, 0.04) 0%, rgba(0, 64, 105, 0.12) 100% ), url("../Images/login-banner.jpg");
    background-size: cover;
    /*
             * Important:
             * Anchor the image to the right so the people
             * remain visible when the image is cropped.
             */
    background-position: 65%;
    background-repeat: no-repeat;
}

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        /*
             * Slight darkening toward the left to help
             * the logo and text sit comfortably over the image.
             */
        background: linear-gradient( 90deg, rgba(0, 60, 95, 0.20) 0%, rgba(0, 60, 95, 0.04) 52%, rgba(0, 60, 95, 0) 78% );
    }

.hero-inner {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 54px 64px 60px;
    display: flex;
    flex-direction: column;
}

.hero-logo {
    width: 240px;
    max-width: 42%;
    height: auto;
    filter: brightness(0) invert();
}

.hero-copy {
    margin-top: auto;
    margin-right: auto;
    max-width: 560px;
    padding: 28px 32px;
    border-radius: 16px;
    color: #ffffff;
    background: rgba(0, 74, 118, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 18px 45px rgba(0, 44, 72, 0.18);
}

    .hero-copy h2 {
        margin: 0 0 12px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(34px, 3vw, 52px);
        line-height: 1.08;
        font-weight: 400;
        letter-spacing: -0.02em;
    }

    .hero-copy p {
        margin: 0;
        max-width: 500px;
        font-size: 17px;
        line-height: 1.65;
    }

/* ====================================================
           RIGHT LOGIN PANEL
        ==================================================== */

.login-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 48px 56px;
}

.login-box {
    width: 100%;
    max-width: 490px;
}

.login-title {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 24.5px + 0.9545vi, 48px);
    line-height: 1.15;
    font-weight: 400;
    color: #17202a;
}

.login-subtitle {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: clamp(11px, 10px + 0.3068vi, 15px);
    line-height: 1.6;
}

/* ====================================================
           SECURITY MESSAGE
        ==================================================== */

.security-message {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 28px;
    padding: 15px 17px;
    border: 1px solid #b9dceb;
    border-radius: 10px;
    background: #eff9fd;
}

.security-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-top: -2px;
    color: var(--primary);
}

.security-message strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.security-message span {
    display: block;
    color: #536270;
    font-size: 13px;
    line-height: 1.45;
}

/* ====================================================
           FORM
        ==================================================== */

.form-group {
    margin-bottom: 20px;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #27313a;
}

.forgot-link {
    font-size: 13px;
    white-space: nowrap;
}

.input-wrap {
    position: relative;
}

.login-form-control {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: var(--input-bg);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

    .login-form-control:focus {
        border-color: var(--primary);
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(0, 132, 200, 0.12);
    }

    .login-form-control::placeholder {
        color: #9aa4ae;
    }

.input-wrap .floating-label {
    line-height: 20px;
    pointer-events: none;
    color: #9095a0;
    top: 16px;
    left: 16px;
    transition: all .1s ease-in-out;
    position: absolute;
}
    .input-wrap .floating-label:has(+input:not(:placeholder-shown)),
    .input-wrap .floating-label:has(+input:focus-within),
    .input-wrap .floating-label:has(+input:-webkit-autofill) {
        font-size: 10px;
        top: 2px;
    }

.float-label-input-group .login-form-control {
    padding: 10px 48px 0 15px;
}


input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #f7f8fa inset !important;
    -webkit-text-fill-color: var(--text) !important;
    caret-color: var(--text);
    transition: background-color 5000s ease-in-out 0s;
    font-size: 15px !important;
    font-family: inherit !important;
}

input:-webkit-autofill::first-line {
    font-size: 15px !important;
    font-family: inherit !important;
}

input:autofill {
    background: var(--input-bg);
    color: var(--text);
    font-size: 15px !important; 
    font-family: inherit !important; 
}

/* ====================================================
           PASSWORD BUTTON
        ==================================================== */

    .password-toggle {
        position: absolute;
        top: 50%;
        right: 14px;
        transform: translateY(-50%);
        border: 0;
        padding: 4px;
        background: transparent;
        color: #697586;
        cursor: pointer;
        font-size: 13px;
    }

        .password-toggle:hover {
            color: var(--primary);
        }
    /* ====================================================
           CHECKBOX
        ==================================================== */

    .options-row {
        margin: 4px 0 28px;
    }

    .checkbox-label {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-weight: 400;
    }

        .checkbox-label input {
            width: 18px;
            height: 18px;
            margin: 0;
            accent-color: var(--primary);
        }
    /* ====================================================
           SIGN IN BUTTON
        ==================================================== */

    .btn-login {
        width: 100%;
        min-height: 52px;
        border: 0;
        border-radius: 999px;
        background: var(--primary);
        color: #ffffff;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
        box-shadow: 0 8px 20px rgba(0, 132, 200, 0.18);
    }

        .btn-login:hover {
            background: var(--primary-dark);
            box-shadow: 0 10px 24px rgba(0, 132, 200, 0.25);
        }

        .btn-login:active {
            transform: translateY(1px);
        }
    /* ====================================================
           FOOTER LINKS
        ==================================================== */

    .login-links {
        margin-top: 25px;
        padding-top: 24px;
        border-top: 1px solid #edf0f2;
        text-align: center;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.7;
    }

        .login-links a {
            margin: 0 7px;
        }

    .support-text {
        margin-top: 18px;
        color: #7a8691;
        font-size: 12px;
        text-align: center;
    }
    /* ====================================================
           ERROR MESSAGE
        ==================================================== */

    .form-error {
        display: none;
        margin: -7px 0 17px;
        color: var(--danger);
        font-size: 13px;
    }

        .form-error.active {
            display: block;
        }
    /* ====================================================
           TABLET
        ==================================================== */

    @media (max-width: 1050px) {

        .login-page {
            grid-template-columns: minmax(0, 1fr) var(--content-min-width);
        }

        .hero-inner {
            padding: 42px;
        }

        .hero-copy {
            padding: 26px 28px;
        }

        .login-panel {
            padding: 42px 36px;
        }
    }
    /* ====================================================
           SMALL TABLET / MOBILE
        ==================================================== */

    @media (max-width: 820px) {

        .login-page {
            display: block;
        }

        .hero {
            min-height: 330px;
            /*
                 * Preserve more of the people on smaller screens.
                 */
            background-position: 75% center;
        }

        .hero-inner {
            min-height: 330px;
            padding: 28px;
        }

        .hero-logo {
            width: 190px;
        }

        .hero-copy {
            margin-top: auto;
            max-width: 520px;
            padding: 20px 22px;
        }

            .hero-copy h2 {
                font-size: 30px;
            }

            .hero-copy p {
                font-size: 14px;
            }

        .login-panel {
            min-height: auto;
            padding: 48px 28px 60px;
        }
    }
    /* ====================================================
           MOBILE
        ==================================================== */

    @media (max-width: 560px) {

        .hero {
            min-height: 230px;
            background-position: 78% center;
        }

        .hero-inner {
            min-height: 230px;
            padding: 22px;
        }

        .hero-logo {
            width: 165px;
        }
        /*
             * Hide the text panel on very small screens so
             * the photo remains clean and the login appears quickly.
             */
        .hero-copy {
            display: none;
        }

        .login-panel {
            padding: 36px 22px 50px;
        }

        .security-message {
            padding: 13px 14px;
        }

        .login-links span {
            display: none;
        }

        .login-links a {
            display: block;
            margin: 7px 0;
        }
    }

    .select-type-box > .input-group > * {
        background: var(--input-bg) !important;
        font-size: 15px !important;
        line-height: 1.5;
    }

    .select-type-box > .input-group {
        margin-bottom: 15px;
    }

    .select-type .form-control {
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: keep-all;
        white-space: nowrap;
        padding-right: 10px !important;
    }

    .txt-code {
        background: #fff;
    }

    .input-group-addon, .input-group > .form-control {
        background: var(--input-bg) !important;
    }

    @media (max-width: 576px) {
        .hero {
            display: none;
        }
    }