:root {
    --auth-navy: #031f27;
    --auth-navy-soft: #07343d;
    --auth-teal: #12cfc5;
    --auth-teal-dark: #087c78;
    --auth-ink: #102630;
    --auth-muted: #687b85;
    --auth-line: #dce6e9;
    --auth-surface: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.login-page-v2 {
    min-width: 320px;
    background: #edf3f4;
    color: var(--auth-ink);
    font-size: 14px;
}

.login-page-v2 a {
    text-decoration: none;
}

.login-page-v2 button,
.login-page-v2 input {
    font: inherit;
}

.login-page-v2 .ui-icon {
    display: block;
    flex: 0 0 auto;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(600px, 1.38fr) minmax(460px, 1fr);
    min-height: 100vh;
    min-height: 100svh;
}

.auth-hero {
    position: relative;
    isolation: isolate;
    min-height: 760px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(32px, 4.2vw, 64px) clamp(38px, 5.2vw, 82px) 34px;
    color: #fff;
    background: #021f27 url("../images/login-hero-erp-v3.webp") 62% center / cover no-repeat;
}

.auth-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(1, 25, 32, .99) 0%, rgba(1, 25, 32, .95) 37%, rgba(1, 25, 32, .68) 61%, rgba(1, 25, 32, .20) 100%),
        linear-gradient(0deg, rgba(1, 20, 26, .76) 0%, rgba(1, 20, 26, .06) 44%);
}

.auth-hero::before,
.auth-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.auth-hero::before {
    width: 480px;
    height: 480px;
    right: -215px;
    top: -205px;
    border: 1px solid rgba(41, 218, 207, .22);
    box-shadow: 0 0 0 88px rgba(30, 207, 196, .025), 0 0 0 176px rgba(30, 207, 196, .018);
}

.auth-hero::after {
    width: 280px;
    height: 280px;
    left: -190px;
    bottom: -190px;
    background: rgba(16, 204, 194, .09);
    filter: blur(8px);
}

.auth-hero-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff;
}

.auth-logo-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(43, 225, 215, .30);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(8, 91, 99, .96), rgba(3, 40, 49, .98));
    color: #35e2da;
    box-shadow: inset 0 0 22px rgba(20, 210, 201, .10), 0 12px 32px rgba(0, 0, 0, .12);
}

.auth-logo-mark .ui-icon {
    fill: currentColor;
    stroke: none;
}

.auth-brand b {
    display: block;
    font-size: 24px;
    line-height: 1;
    letter-spacing: .5px;
}

.auth-brand small {
    display: block;
    margin-top: 6px;
    color: #9db2b8;
    font-size: 10px;
    letter-spacing: 2.4px;
}

.auth-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid rgba(184, 225, 225, .17);
    border-radius: 999px;
    background: rgba(2, 38, 46, .46);
    color: #c3d3d7;
    font-size: 10px;
    letter-spacing: .15px;
    backdrop-filter: blur(8px);
}

.auth-hero-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #26d8cf;
    box-shadow: 0 0 0 5px rgba(38, 216, 207, .10);
}

.auth-presentation {
    position: relative;
    z-index: 2;
    width: min(690px, 84%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 56px 0 44px;
}

.auth-copy {
    max-width: 590px;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(30, 221, 210, .45);
    border-radius: 999px;
    background: rgba(4, 57, 64, .52);
    color: #efffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .35px;
    box-shadow: inset 0 0 18px rgba(7, 177, 170, .06);
    backdrop-filter: blur(8px);
}

.auth-presentation h1 {
    margin: 25px 0 17px;
    max-width: 620px;
    font-size: clamp(43px, 4.1vw, 66px);
    line-height: 1.02;
    letter-spacing: -3px;
    font-weight: 800;
}

.auth-presentation h1 em {
    color: #28dfd6;
    font-style: normal;
}

.auth-copy > p {
    max-width: 510px;
    margin: 0;
    color: #c1cfd3;
    font-size: 14px;
    line-height: 1.75;
}

.auth-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 20px;
}

.auth-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #dbe6e8;
    font-size: 10px;
    font-weight: 650;
}

.auth-highlights .ui-icon {
    color: #31dcd4;
}

.auth-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 34px;
}

.auth-feature {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid rgba(191, 222, 224, .14);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(9, 67, 74, .63), rgba(3, 35, 43, .44));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    backdrop-filter: blur(10px);
}

.auth-feature > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(31, 220, 209, .28);
    border-radius: 12px;
    background: rgba(7, 77, 83, .72);
    color: #dffffd;
}

.auth-feature b {
    display: block;
    overflow: hidden;
    color: #f7ffff;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-feature small {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #9eb4ba;
    font-size: 9px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-hero-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #8ba2a9;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.auth-hero-footer i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #23bdb5;
}

.auth-form-side {
    min-height: 760px;
    display: grid;
    place-items: center;
    padding: clamp(28px, 4vw, 64px);
    background:
        radial-gradient(circle at 85% 12%, rgba(20, 188, 179, .07), transparent 25%),
        radial-gradient(circle at 10% 86%, rgba(4, 48, 58, .05), transparent 27%),
        #f6f9fa;
}

.auth-card {
    width: min(460px, 100%);
    display: flex;
    flex-direction: column;
    padding: clamp(30px, 3.2vw, 46px);
    border: 1px solid rgba(213, 225, 229, .92);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(21, 53, 66, .10);
}

.auth-card-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-card-brand .auth-logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 13px;
}

.auth-card-brand > span:last-child {
    display: block;
}

.auth-card-brand b {
    display: block;
    font-size: 19px;
    line-height: 1;
    letter-spacing: .8px;
}

.auth-card-brand small {
    display: block;
    margin-top: 5px;
    color: #75858e;
    font-size: 8px;
    letter-spacing: 2px;
}

.auth-heading {
    margin: 41px 0 31px;
}

.auth-heading-kicker {
    display: block;
    margin-bottom: 11px;
    color: #118f89;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.auth-heading h2 {
    margin: 0 0 10px;
    color: #102630;
    font-size: 31px;
    line-height: 1.12;
    letter-spacing: -1px;
}

.auth-heading p {
    max-width: 330px;
    margin: 0;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.6;
}

.auth-error {
    margin: -9px 0 21px;
    padding: 12px 14px;
    border: 1px solid #ffd3d7;
    border-radius: 11px;
    background: #fff1f2;
    color: #a93540;
    font-size: 11px;
    line-height: 1.5;
}

.auth-error.success-color {
    border-color: #bee9df;
    background: #effbf8;
    color: #157165;
}

.auth-label {
    display: block;
    margin: 0 0 8px;
    color: #344b56;
    font-size: 10px;
    font-weight: 750;
}

.auth-input {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 21px;
    padding: 0 15px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: #fbfcfd;
    color: #748790;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-input:focus-within {
    border-color: #2ba9a3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21, 166, 158, .09);
}

.auth-input.has-error {
    border-color: #e27e87;
}

.auth-input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #142a37;
    font-size: 12px;
    box-shadow: none;
}

.auth-input input:focus {
    border: 0;
    box-shadow: none;
}

.auth-input input::placeholder {
    color: #9aa8b0;
}

.password-eye {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-right: -7px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #70838e;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.password-eye:hover,
.password-eye:focus-visible {
    background: #eaf5f4;
    color: #087e78;
    outline: 0;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 27px;
}

.remember-control {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 9px !important;
    margin: 0 !important;
    color: #465a64 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.remember-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.remember-control > span {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #aebdc5;
    border-radius: 5px;
    background: #fff;
}

.remember-control input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(15, 145, 138, .13);
}

.remember-control input:checked + span {
    border-color: #07877f;
    background: #07877f;
}

.remember-control input:checked + span::after {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.forgot-label {
    color: #078d86;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.forgot-label:hover {
    color: #055f5a;
}

.auth-submit {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 19px 0 23px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(105deg, #052e37 0%, #07515a 53%, #087a72 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 13px 28px rgba(5, 75, 79, .18);
    transition: transform .18s ease, box-shadow .18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(5, 75, 79, .24);
}

.auth-submit:focus-visible {
    outline: 3px solid rgba(17, 183, 174, .24);
    outline-offset: 3px;
}

.auth-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #edf1f3;
    color: #87959c;
    font-size: 9px;
    line-height: 1.4;
}

.auth-secure .ui-icon {
    color: #45968f;
}

.auth-form-full {
    grid-column: 1 / -1;
    min-height: 100vh;
    min-height: 100svh;
}

.auth-form-full .auth-card {
    width: min(500px, 100%);
}

.auth-form-full .auth-card > a {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 22px;
    color: #078d86;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 1280px) {
    .auth-layout {
        grid-template-columns: minmax(540px, 1.18fr) minmax(440px, 1fr);
    }

    .auth-hero {
        padding-right: 46px;
        padding-left: 46px;
        background-position: 59% center;
    }

    .auth-presentation {
        width: min(620px, 90%);
    }

    .auth-presentation h1 {
        font-size: clamp(43px, 4.4vw, 56px);
    }

    .auth-hero-status {
        display: none;
    }

    .auth-form-side {
        padding: 28px;
    }
}

@media (max-width: 1040px) {
    .auth-layout {
        grid-template-columns: minmax(500px, 1.05fr) minmax(430px, .95fr);
    }

    .auth-hero {
        padding-right: 34px;
        padding-left: 34px;
    }

    .auth-presentation {
        width: 96%;
    }

    .auth-feature {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .auth-feature > span {
        width: 42px;
        height: 42px;
    }

    .auth-card {
        padding-right: 34px;
        padding-left: 34px;
    }
}

@media (max-width: 900px) {
    .auth-layout {
        display: block;
    }

    .auth-hero {
        min-height: 500px;
        padding: 30px clamp(24px, 7vw, 62px) 28px;
        background-position: 64% center;
    }

    .auth-presentation {
        width: min(650px, 90%);
        padding: 48px 0 34px;
    }

    .auth-presentation h1 {
        font-size: clamp(42px, 7vw, 58px);
    }

    .auth-features {
        max-width: 630px;
        margin-top: 28px;
    }

    .auth-hero-footer {
        display: none;
    }

    .auth-form-side {
        min-height: 650px;
        padding: 54px 24px;
    }

    .auth-card {
        width: min(500px, 100%);
    }
}

@media (max-width: 620px) {
    .auth-hero {
        min-height: 390px;
        padding: 24px 22px;
        background-position: 68% center;
    }

    .auth-logo-mark {
        width: 43px;
        height: 43px;
        border-radius: 12px;
    }

    .auth-brand b {
        font-size: 20px;
    }

    .auth-brand small {
        margin-top: 5px;
        font-size: 8px;
    }

    .auth-presentation {
        width: 100%;
        padding: 47px 0 10px;
    }

    .auth-pill {
        min-height: 30px;
        font-size: 9px;
    }

    .auth-presentation h1 {
        margin: 18px 0 13px;
        font-size: clamp(38px, 11vw, 49px);
        letter-spacing: -2.2px;
    }

    .auth-copy > p {
        max-width: 390px;
        font-size: 12px;
        line-height: 1.65;
    }

    .auth-highlights {
        margin-top: 16px;
    }

    .auth-features {
        display: none;
    }

    .auth-form-side {
        min-height: 0;
        padding: 28px 14px;
        background: #f3f7f8;
    }

    .auth-card {
        padding: 28px 23px;
        border-radius: 19px;
    }

    .auth-heading {
        margin: 33px 0 27px;
    }

    .auth-heading h2 {
        font-size: 28px;
    }

    .auth-input {
        height: 52px;
        margin-bottom: 18px;
    }

    .auth-options {
        gap: 10px;
        margin-bottom: 23px;
    }

    .forgot-label,
    .remember-control {
        font-size: 9px !important;
    }

    .auth-secure {
        align-items: flex-start;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .auth-highlights span:last-child {
        display: none;
    }

    .auth-card {
        padding-right: 18px;
        padding-left: 18px;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-height: 760px) and (min-width: 901px) {
    .auth-hero,
    .auth-form-side {
        min-height: 700px;
    }

    .auth-hero {
        padding-top: 25px;
        padding-bottom: 23px;
    }

    .auth-presentation {
        padding-top: 30px;
        padding-bottom: 24px;
    }

    .auth-presentation h1 {
        margin-top: 18px;
        font-size: 44px;
    }

    .auth-features {
        margin-top: 24px;
    }

    .auth-card {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .auth-heading {
        margin-top: 28px;
        margin-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-submit,
    .auth-input,
    .password-eye {
        transition: none;
    }
}

