:root {
    --blue: #1a76d1;
    --blue-dark: #0f5aa8;
    --navy: #16294a;
    --red: #e0452f;
    --ink: #1b2a44;
    --muted: #7e8ea6;
    --line: #e7ecf4;
    --field: #f1f5fc;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: #0a1020;
    color: var(--ink);
}

/* ---------- stage ---------- */

.login-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 14px 28px;
    background: #0a1020;
}

    .login-container::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(780px 470px at 10% 8%, rgba(3,150,215,.24), transparent 64%), radial-gradient(840px 490px at 88% 78%, rgba(56,192,245,.16), transparent 64%), radial-gradient(620px 350px at 62% 4%, rgba(124,92,255,.14), transparent 66%);
    }

#loginCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: .5;
    pointer-events: none;
}

/* ---------- shell ---------- */

.login-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: linear-gradient(160deg, #f3f8ff 0%, #eef4fd 46%, #f0f1fd 100%);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(2,10,28,.5);
    animation: rise .8s cubic-bezier(.2,.8,.2,1) both;
}

    .login-shell.no-notice {
        max-width: 410px;
    }

@keyframes rise {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(.98);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

/* ---------- form side ---------- */

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 24px 22px;
    background: #fff;
    border-radius: 26px;
    margin: 0;
    box-shadow: 0 0px 24px -2px rgb(2 10 28 / 25%);
}

.client-logo img {
    height: 100px;
    max-width: 200px;
    object-fit: contain;
    animation: logoFloat 3.5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.lab-kind {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    font-size: .6rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #c9321f;
    padding: 5px 13px;
    border-radius: 999px;
    background: #fdeeeb;
    border: 1px solid rgba(226,69,47,.22);
}

.license-alert {
    width: 100%;
    margin-top: 12px;
    text-align: center;
    font-size: .76rem;
    font-weight: 500;
    color: #b42318;
    background: #fde8e4;
    border: 1px solid #f06548;
    border-radius: 8px;
    padding: 8px 12px;
}

.login-text {
    width: 100%;
    margin-top: 12px;
}

.login-heading {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.3px;
    color: var(--navy);
}

.login-sub-heading {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

/* ---------- fields ---------- */

.login-input {
    display: flex;
    flex-direction: column;
    gap: 11px;
    width: 100%;
    margin-top: 18px;
    text-align: left;
}

label.lbl {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .32rem;
}

.input-sec {
    position: relative;
}

.user-name,
.password {
    width: 100%;
    border: 1px solid #e3eaf6;
    outline: none;
    border-radius: 11px;
    padding: 11px 14px 11px 44px;
    background: var(--field);
    color: var(--ink);
    font-size: 14px;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.password {
    padding-right: 42px;
}

    .user-name::placeholder,
    .password::placeholder {
        color: #a3b1c6;
    }

    .user-name:focus,
    .password:focus {
        background: #fff;
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(26,118,209,.12);
    }

.user-name-lbl,
.password-lbl {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    margin: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #e2ecfb;
    color: var(--blue);
    font-size: 12px;
    pointer-events: none;
}

.field-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--muted);
    border-radius: 8px;
    cursor: pointer;
}

    .field-eye:hover {
        color: var(--blue);
    }

.login-shell .select2-container {
    width: 100% !important;
}

    .login-shell .select2-container .select2-selection--single {
        display: flex;
        align-items: center;
        height: 44px;
        padding: 0 12px;
        background: var(--field);
        border: 1px solid #e3eaf6;
        border-radius: 11px;
        outline: none;
    }

.login-shell .select2-container--open .select2-selection--single {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,118,209,.12);
}

.login-shell .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: var(--ink);
    font-size: 14px;
    line-height: 42px;
}

.login-shell .select2-container .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 8px;
}

.select2-dropdown {
    border-color: #e3eaf6;
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(13,31,51,.14);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--blue);
    color: #fff;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e3eaf6;
    border-radius: 8px;
    padding: 6px 10px;
    outline: none;
}

.forgot-pass {
    width: 100%;
    text-align: end;
    margin-top: -3px;
}

    .forgot-pass a {
        color: var(--blue);
        font-size: 12.5px;
        font-weight: 600;
        text-decoration: none;
    }

        .forgot-pass a:hover {
            color: var(--blue-dark);
            text-decoration: underline;
        }

/* ---------- button ---------- */

.login-button {
    width: 100%;
    margin-top: 14px;
}

    .login-button button[type=submit] {
        width: 100%;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border: none;
        outline: none;
        border-radius: 11px;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        background: linear-gradient(90deg, #1a76d1, #0f5aa8, #2b95e8, #1a76d1);
        background-size: 200% 200%;
        box-shadow: 0 10px 20px rgba(26,118,209,.32);
        animation: gradientShift 4s ease infinite;
        transition: transform .2s ease, box-shadow .2s ease;
    }

        .login-button button[type=submit] i {
            transition: transform .2s ease;
        }

        .login-button button[type=submit]:hover {
            transform: translateY(-2px);
            box-shadow: 0 18px 28px rgba(26,118,209,.42);
        }

            .login-button button[type=submit]:hover i {
                transform: translateX(4px);
            }

        .login-button button[type=submit]:active {
            transform: translateY(0);
        }

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ---------- footer ---------- */

.or-rule {
    width: 100%;
    height: 1px;
    margin: 16px 0 13px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

    .powered-by span {
        font-size: 12px;
        color: var(--muted);
    }

    .powered-by img {
        height: 26px;
        object-fit: contain;
    }

.developed-by {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
}

    .developed-by a {
        font-weight: 700;
        color: #475569;
        text-decoration: none;
    }

        .developed-by a:hover {
            color: var(--blue);
        }

/* ---------- notice panel ---------- */

.notice-panel {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 22px 20px 24px;
    /* background: linear-gradient(160deg, #f3f8ff 0%, #eef4fd 46%, #f0f1fd 100%); */
    border-top: 1px solid #e4edfa;
}

.notice-head {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
}

.notice-ico {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    background: linear-gradient(140deg, #ef5b45, #cf2d17);
    box-shadow: 0 8px 15px -2PX rgba(207,45,23,.3);
}

    .notice-ico::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        animation: micPing 1.8s cubic-bezier(.2,.7,.4,1) infinite;
    }

    .notice-ico i {
        transform-origin: 46% 68%;
        animation: micShake 1.05s ease-in-out infinite;
    }

@keyframes micShake {
    0%, 100% {
        transform: rotate(-9deg);
    }

    50% {
        transform: rotate(9deg);
    }
}

@keyframes micPing {
    0% {
        box-shadow: 0 0 0 0 rgba(207,45,23,.45);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(207,45,23,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(207,45,23,0);
    }
}

.notice-title {
    flex: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
}

    .notice-title span {
        color: var(--red);
    }

.notice-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #5b6c86;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    border: 1px solid #dfe9f8;
}

.notice-sheet {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #e4edfa;
    z-index: 25;
    box-shadow: inset 0 0px 1px -1px rgb(2 10 28 / 25%);
}

.notice-img {
    display: block;
    /* width: 100%; */
    max-height: 300px;
    object-fit: contain;
}

.notice-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 2px;
}

.note-ico,
.date-card i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    background: #eef3fd;
    color: var(--blue);
    font-size: 13px;
    box-shadow: 0 5px 12px rgba(26,118,209,.2);
}

.note-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.note-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.note-text {
    font-size: 13px;
    line-height: 1.55;
    color: #5c6c84;
}

.notice-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 11px;
}

.date-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 2px;
}

.dc-lbl {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
}

.dc-val {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

/* ---------- tablet ---------- */

@media (min-width: 576px) {
    .form-container {
        padding: 28px 30px 24px;
    }

    .client-logo img {
        height: 100px;
        max-width: 200px;
    }

    .login-heading {
        font-size: 25px;
    }

    .notice-panel {
        padding: 22px;
    }

    .notice-title {
        font-size: 21px;
    }
}

/* ---------- desktop ---------- */

@media (min-width: 992px) {
    .login-shell {
        grid-template-columns: 400px minmax(0, 1fr);
    }

    .form-container {
        justify-content: center;
        padding: 28px 32px 24px;
    }

    .notice-panel {
        border-top: none;
        /* border-left: 1px solid #e4edfa; */
    }

    .notice-img {
        max-height: 38vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-shell,
    .client-logo img,
    .login-button button[type=submit],
    .notice-ico {
        animation: none;
    }
}
