:root {
    --ztx-login-navy: #071e43;
    --ztx-login-blue: #1278de;
    --ztx-login-blue-2: #2d8cff;
    --ztx-login-sky: #eaf5ff;
    --ztx-login-border: #cbd8ea;
    --ztx-login-muted: #72819b;
    --ztx-login-base-width: 1180px;
    --ztx-login-base-height: 760px;
    --ztx-login-scale: .85;
    --ztx-login-scaled-width: 1003px;
    --ztx-login-scaled-height: 646px;
    --ztx-login-input-font-size: 18px;
    --ztx-login-input-font-family: "Segoe UI", system-ui, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body.ztx-login-page {
    min-height: 100vh;
    margin: 0;
    color: var(--ztx-login-navy);
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 255, 255, .82) 0 8rem, transparent 8.2rem),
        radial-gradient(circle at 92% 82%, rgba(180, 221, 255, .72) 0 12rem, transparent 12.2rem),
        linear-gradient(135deg, #e8f5ff 0%, #f5fbff 50%, #deefff 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ztx-login-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 3rem;
    overflow: auto;
}

.ztx-login-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--ztx-login-scaled-width);
    height: var(--ztx-login-scaled-height);
    flex: 0 0 auto;
}

.ztx-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    width: var(--ztx-login-base-width);
    height: var(--ztx-login-base-height);
    flex: 0 0 auto;
    transform: scale(var(--ztx-login-scale));
    transform-origin: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 2.2rem 5rem rgba(18, 79, 138, .18);
}

.ztx-login-hero {
    position: relative;
    min-height: 100%;
    isolation: isolate;
    background-image: url("../img/login/login-worker-panel-actual.png");
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
}

.ztx-login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: none;
}

.ztx-login-hero::after {
    content: "";
    position: absolute;
    top: -12%;
    right: -6.4rem;
    z-index: 1;
    width: 12.5rem;
    height: 124%;
    border-left: 5px solid rgba(45, 140, 255, .96);
    border-radius: 55% 0 0 48% / 50% 0 0 50%;
    background: linear-gradient(90deg, rgba(12, 111, 214, .26), rgba(248, 252, 255, 1) 60%);
    box-shadow: -1.2rem 0 2.4rem rgba(11, 70, 136, .16);
}

.ztx-hero-overlay {
    position: absolute;
    inset: 0;
    display: none;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, .18) 1.5px, transparent 1.5px);
    background-size: 1.3rem 1.3rem;
    background-position: 1.8rem 1.8rem;
    mask-image: linear-gradient(130deg, #000 0 22%, transparent 42%);
    opacity: .8;
}

.ztx-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    max-width: 45rem;
    padding: clamp(2rem, 4vw, 4.2rem);
    color: #fff;
}

.ztx-hero-icon,
.ztx-feature-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}

.ztx-hero-icon {
    width: 3.6rem;
    height: 3.6rem;
    margin-bottom: 1.4rem;
    border-radius: .95rem;
    font-size: 1.45rem;
}

.ztx-hero-content h1 {
    margin: 0;
    max-width: 36rem;
    font-size: clamp(2rem, 3.3vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
    text-shadow: 0 .18rem .55rem rgba(0, 28, 66, .34);
}

.ztx-hero-content p {
    max-width: 35rem;
    margin: 1rem 0 2rem;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(.96rem, 1.2vw, 1.08rem);
    line-height: 1.6;
    text-shadow: 0 .12rem .4rem rgba(0, 28, 66, .28);
}

.ztx-feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: calc(42rem - 1.25rem);
    margin-left: 1.25rem;
}

.ztx-feature-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.ztx-feature-item span {
    flex: 0 0 auto;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: .8rem;
    font-size: 1.15rem;
}

.ztx-feature-item strong {
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.28;
    text-shadow: 0 .12rem .35rem rgba(0, 28, 66, .3);
}

.ztx-login-panel {
    position: relative;
    min-height: 100%;
    background: transparent;
}

.ztx-login-panel-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, rgba(18, 120, 222, .11) 1.5px, transparent 1.5px) right 2.2rem bottom 2rem / 1.25rem 1.25rem no-repeat,
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(240, 248, 255, .86));
}

.ztx-login-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 2rem clamp(1.5rem, 3.2vw, 3rem);
}

.ztx-logo-wrap {
    width: min(18rem, 76vw);
    margin-bottom: 1.45rem;
    text-align: center;
}

.ztx-logo-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.ztx-login-card {
    width: min(100%, 27rem);
    padding: clamp(1.7rem, 3vw, 2.6rem);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 1.4rem 3.2rem rgba(16, 57, 103, .13);
    backdrop-filter: blur(18px);
}

.ztx-login-card-header {
    margin-bottom: 1.45rem;
}

.ztx-login-card-header h2 {
    margin: 0;
    color: var(--ztx-login-navy);
    font-size: clamp(1.85rem, 2.6vw, 2.25rem);
    font-weight: 800;
    letter-spacing: 0;
}

.ztx-login-card-header p {
    margin: .55rem 0 0;
    color: var(--ztx-login-muted);
    font-size: 1rem;
}

.ztx-login-alert {
    display: flex;
    gap: .65rem;
    margin-bottom: 1rem;
    padding: .8rem .9rem;
    border: 1px solid #fecdd3;
    border-radius: .8rem;
    color: #9f1239;
    background: #fff1f2;
    font-size: .92rem;
}

.ztx-form-group {
    margin-bottom: 1rem;
}

.ztx-form-group label {
    display: block;
    margin-bottom: .55rem;
    color: var(--ztx-login-navy);
    font-weight: 700;
}

.ztx-input-wrap {
    display: grid;
    grid-template-columns: 1.35rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    min-height: 3.25rem;
    padding: 0 .95rem;
    border: 1px solid var(--ztx-login-border);
    border-radius: .55rem;
    background: rgba(255, 255, 255, .9);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ztx-input-wrap:focus-within {
    border-color: var(--ztx-login-blue-2);
    background: #fff;
    box-shadow: 0 0 0 .22rem rgba(45, 140, 255, .14);
}

.ztx-input-wrap.has-error {
    border-color: #fb7185;
}

.ztx-input-wrap > i {
    color: #8090aa;
    font-size: 1.15rem;
}

body.ztx-login-page .ztx-input-wrap #id_username.login-input,
body.ztx-login-page .ztx-input-wrap #id_password.login-input,
body.ztx-login-page .ztx-input-wrap .login-input,
body.ztx-login-page .ztx-input-wrap input.login-input,
body.ztx-login-page .ztx-input-wrap input[name="username"],
body.ztx-login-page .ztx-input-wrap input[name="password"],
body.ztx-login-page .ztx-input-wrap input[type="text"],
body.ztx-login-page .ztx-input-wrap input[type="email"],
body.ztx-login-page .ztx-input-wrap input[type="password"] {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ztx-login-navy);
    background: transparent;
    font-family: var(--ztx-login-input-font-family) !important;
    font-size: var(--ztx-login-input-font-size) !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    transition: none !important;
}

body.ztx-login-page .ztx-input-wrap #id_username.login-input:hover,
body.ztx-login-page .ztx-input-wrap #id_username.login-input:focus,
body.ztx-login-page .ztx-input-wrap #id_username.login-input:active,
body.ztx-login-page .ztx-input-wrap #id_password.login-input:hover,
body.ztx-login-page .ztx-input-wrap #id_password.login-input:focus,
body.ztx-login-page .ztx-input-wrap #id_password.login-input:active,
body.ztx-login-page .ztx-input-wrap .login-input:hover,
body.ztx-login-page .ztx-input-wrap .login-input:focus,
body.ztx-login-page .ztx-input-wrap .login-input:active,
body.ztx-login-page .ztx-input-wrap input[name="username"]:hover,
body.ztx-login-page .ztx-input-wrap input[name="username"]:focus,
body.ztx-login-page .ztx-input-wrap input[name="username"]:active,
body.ztx-login-page .ztx-input-wrap input[name="password"]:hover,
body.ztx-login-page .ztx-input-wrap input[name="password"]:focus,
body.ztx-login-page .ztx-input-wrap input[name="password"]:active,
body.ztx-login-page .ztx-input-wrap input[type="text"]:hover,
body.ztx-login-page .ztx-input-wrap input[type="text"]:focus,
body.ztx-login-page .ztx-input-wrap input[type="text"]:active,
body.ztx-login-page .ztx-input-wrap input[type="email"]:hover,
body.ztx-login-page .ztx-input-wrap input[type="email"]:focus,
body.ztx-login-page .ztx-input-wrap input[type="email"]:active,
body.ztx-login-page .ztx-input-wrap input[type="password"]:hover,
body.ztx-login-page .ztx-input-wrap input[type="password"]:focus,
body.ztx-login-page .ztx-input-wrap input[type="password"]:active {
    font-family: var(--ztx-login-input-font-family) !important;
    font-size: var(--ztx-login-input-font-size) !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    -webkit-text-fill-color: var(--ztx-login-navy) !important;
    caret-color: var(--ztx-login-navy) !important;
    transition: none !important;
}

body.ztx-login-page .ztx-input-wrap #id_username.login-input::placeholder,
body.ztx-login-page .ztx-input-wrap #id_password.login-input::placeholder,
body.ztx-login-page .ztx-input-wrap .login-input::placeholder,
body.ztx-login-page .ztx-input-wrap input[name="username"]::placeholder,
body.ztx-login-page .ztx-input-wrap input[name="password"]::placeholder,
body.ztx-login-page .ztx-input-wrap input[type="text"]::placeholder,
body.ztx-login-page .ztx-input-wrap input[type="email"]::placeholder,
body.ztx-login-page .ztx-input-wrap input[type="password"]::placeholder {
    color: #93a1b8;
    font-family: var(--ztx-login-input-font-family) !important;
    font-size: var(--ztx-login-input-font-size) !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    opacity: 1 !important;
}

body.ztx-login-page .ztx-input-wrap #id_username.login-input:-webkit-autofill,
body.ztx-login-page .ztx-input-wrap #id_username.login-input:-webkit-autofill:hover,
body.ztx-login-page .ztx-input-wrap #id_username.login-input:-webkit-autofill:focus,
body.ztx-login-page .ztx-input-wrap #id_username.login-input:-webkit-autofill:active,
body.ztx-login-page .ztx-input-wrap #id_password.login-input:-webkit-autofill,
body.ztx-login-page .ztx-input-wrap #id_password.login-input:-webkit-autofill:hover,
body.ztx-login-page .ztx-input-wrap #id_password.login-input:-webkit-autofill:focus,
body.ztx-login-page .ztx-input-wrap #id_password.login-input:-webkit-autofill:active,
body.ztx-login-page .ztx-input-wrap .login-input:-webkit-autofill,
body.ztx-login-page .ztx-input-wrap .login-input:-webkit-autofill:hover,
body.ztx-login-page .ztx-input-wrap .login-input:-webkit-autofill:focus,
body.ztx-login-page .ztx-input-wrap .login-input:-webkit-autofill:active,
body.ztx-login-page .ztx-input-wrap input[name="username"]:-webkit-autofill,
body.ztx-login-page .ztx-input-wrap input[name="password"]:-webkit-autofill,
body.ztx-login-page .ztx-input-wrap input[name="username"]:-webkit-autofill:hover,
body.ztx-login-page .ztx-input-wrap input[name="password"]:-webkit-autofill:hover,
body.ztx-login-page .ztx-input-wrap input[name="username"]:-webkit-autofill:focus,
body.ztx-login-page .ztx-input-wrap input[name="password"]:-webkit-autofill:focus,
body.ztx-login-page .ztx-input-wrap input[name="username"]:-webkit-autofill:active,
body.ztx-login-page .ztx-input-wrap input[name="password"]:-webkit-autofill:active,
body.ztx-login-page .ztx-input-wrap input[type="text"]:-webkit-autofill,
body.ztx-login-page .ztx-input-wrap input[type="email"]:-webkit-autofill,
body.ztx-login-page .ztx-input-wrap input[type="password"]:-webkit-autofill,
body.ztx-login-page .ztx-input-wrap input[type="text"]:-webkit-autofill:hover,
body.ztx-login-page .ztx-input-wrap input[type="email"]:-webkit-autofill:hover,
body.ztx-login-page .ztx-input-wrap input[type="password"]:-webkit-autofill:hover,
body.ztx-login-page .ztx-input-wrap input[type="text"]:-webkit-autofill:focus,
body.ztx-login-page .ztx-input-wrap input[type="email"]:-webkit-autofill:focus,
body.ztx-login-page .ztx-input-wrap input[type="password"]:-webkit-autofill:focus,
body.ztx-login-page .ztx-input-wrap input[type="text"]:-webkit-autofill:active,
body.ztx-login-page .ztx-input-wrap input[type="email"]:-webkit-autofill:active,
body.ztx-login-page .ztx-input-wrap input[type="password"]:-webkit-autofill:active {
    font-family: var(--ztx-login-input-font-family) !important;
    font-size: var(--ztx-login-input-font-size) !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    -webkit-text-fill-color: var(--ztx-login-navy) !important;
    caret-color: var(--ztx-login-navy) !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    transition: background-color 9999s ease-in-out 0s !important;
}

.ztx-password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    color: #7d8ca5;
    background: transparent;
}

.ztx-password-toggle:hover,
.ztx-password-toggle:focus {
    color: var(--ztx-login-blue);
}

.ztx-field-error {
    margin-top: .45rem;
    color: #be123c;
    font-size: .86rem;
}

.ztx-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .35rem 0 1.75rem;
    color: var(--ztx-login-navy);
    font-size: .94rem;
}

.ztx-check {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.ztx-check input {
    width: 1.08rem;
    height: 1.08rem;
    accent-color: var(--ztx-login-blue-2);
}

.ztx-login-options a {
    color: #0d6efd;
    font-weight: 500;
    text-decoration: none;
}

.ztx-login-options a:hover {
    text-decoration: underline;
}

.ztx-signin-btn {
    width: 100%;
    min-height: 3.45rem;
    border: 0;
    border-radius: .55rem;
    color: #fff;
    background: linear-gradient(135deg, var(--ztx-login-blue-2), #1375e5);
    box-shadow: 0 1rem 2rem rgba(19, 117, 229, .25);
    font-size: 1.05rem;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ztx-signin-btn:hover,
.ztx-signin-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 1.2rem 2.3rem rgba(19, 117, 229, .34);
}

.ztx-login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin: 1.45rem 0 .85rem;
    color: #8a99b0;
}

.ztx-login-divider span {
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd8ea 22%, #d5deec 78%, transparent);
}

.ztx-login-divider em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid rgba(45, 140, 255, .18);
    border-radius: 50%;
    color: #2c7fd3;
    background: rgba(232, 245, 255, .75);
    box-shadow: 0 .35rem .9rem rgba(45, 140, 255, .12);
    font-style: normal;
    font-size: .95rem;
}

.ztx-credit {
    width: 100%;
    margin: 0;
    color: #486b96;
    text-align: center;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .ztx-login-stage {
        padding: 1rem;
    }

    .ztx-feature-list {
        grid-template-columns: 1fr;
        gap: .85rem;
        max-width: 42rem;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .ztx-login-stage {
        display: block;
        min-height: 100vh;
        padding: 1.25rem .75rem;
    }

    .ztx-login-frame {
        display: block;
        width: min(720px, calc(100vw - 1.5rem));
        height: auto;
        margin: 0 auto;
    }

    .ztx-login-shell {
        grid-template-columns: 1fr;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 1.25rem auto;
        transform: none;
    }

    .ztx-login-hero {
        min-height: 28rem;
    }

    .ztx-login-hero::after {
        top: auto;
        right: -10%;
        bottom: -5rem;
        width: 120%;
        height: 10rem;
        border-top: 5px solid rgba(45, 140, 255, .96);
        border-left: 0;
        border-radius: 50% 50% 0 0 / 70% 70% 0 0;
        background: linear-gradient(180deg, rgba(12, 111, 214, .18), rgba(248, 252, 255, 1) 55%);
    }

    .ztx-hero-content {
        min-height: 28rem;
        padding: 1.75rem;
    }

    .ztx-feature-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: calc(42rem - 1.25rem);
        margin-left: 1.25rem;
    }

    .ztx-login-panel,
    .ztx-login-content {
        min-height: auto;
    }

    .ztx-login-content {
        padding: 3.25rem 1.25rem 1.6rem;
    }
}

@media (max-width: 575.98px) {
    body.ztx-login-page {
        background: linear-gradient(135deg, #e8f5ff 0%, #f5fbff 100%);
    }

    .ztx-login-shell {
        width: 100%;
        margin: .5rem auto;
        border-radius: 1rem;
    }

    .ztx-login-hero {
        min-height: 26rem;
    }

    .ztx-hero-content {
        min-height: 26rem;
        padding: 1.25rem;
    }

    .ztx-hero-icon {
        width: 3.4rem;
        height: 3.4rem;
        margin-bottom: 1.1rem;
        font-size: 1.35rem;
    }

    .ztx-feature-list {
        grid-template-columns: 1fr;
        max-width: 42rem;
        margin-left: 0;
    }

    .ztx-login-card {
        padding: 1.4rem;
        border-radius: 1rem;
    }

    .ztx-logo-wrap {
        margin-bottom: 1.4rem;
    }

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