﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Manrope", "Inter", "Segoe UI", Roboto, -apple-system, sans-serif;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #020617;
    color: #f8fafc;
    --login-card-radius: 18px;
    --login-control-radius: 14px;
    --login-border: rgba(148, 163, 184, .2);
    --login-panel-bg: rgba(255, 255, 255, .08);
    --login-panel-hover: rgba(255, 255, 255, .12);
    --login-muted: rgba(226, 232, 240, .72);
    --login-card-max-width: 600px;
    --login-input-height: 54px;
}

/* BG */

.login-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(37, 99, 235, .28), transparent 34%),
        radial-gradient(circle at 84% 82%, rgba(16, 185, 129, .16), transparent 32%),
        linear-gradient(135deg, #020617, #0f172a, #111827);
}

.login-bg::before {
    content: "";
    position: absolute;
    inset: -20vmax;
    background:
        radial-gradient(circle at 20% 18%, rgba(56, 189, 248, .26) 0, transparent 34%),
        radial-gradient(circle at 82% 78%, rgba(129, 140, 248, .2) 0, transparent 38%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .06) 0, transparent 45%);
    opacity: .78;
    filter: blur(2px);
}

.login-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: linear-gradient(110deg, rgba(0, 0, 0, .78), transparent 68%);
    opacity: .72;
    pointer-events: none;
}

/* WRAPPER */

.login-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, var(--login-card-max-width));
    gap: clamp(24px, 3.5vw, 44px);
}

/* LEFT */

.login-left {
    padding: clamp(44px, 5vw, 76px) clamp(38px, 5vw, 78px);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    min-width: 0;
}

.brand-logo {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 16px;
    background: var(--brand-logo-gradient, linear-gradient(135deg, #2563eb 0%, #22c4ff 100%));
    color: var(--brand-logo-text, #ffffff);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: var(--brand-logo-shadow, 0 18px 38px rgba(37, 99, 235, .32));
}

.brand-z-logo {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    font-family: "Manrope", "Segoe UI", sans-serif;
}

img.product-brand-logo {
    display: block;
    object-fit: contain;
    padding: 0;
    background: transparent;
}

.brand-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    object-position: center;
}

.brand-logo-fallback {
    position: absolute;
    inset: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    pointer-events: none;
    opacity: 1;
}

.brand-logo-img:not(.d-none) ~ .brand-logo-fallback {
    opacity: 0;
}

.brand-logo-img.d-none ~ .brand-logo-fallback {
    opacity: 1;
}

.login-card-brand {
    display: none;
    position: relative;
}

.login-environment-badge {
    margin-left: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 8px;
    border: 1px solid rgba(125, 211, 252, .44);
    border-radius: 999px;
    background: rgba(14, 165, 233, .14);
    color: #bae6fd;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1;
}

.login-environment-badge[hidden] {
    display: none;
}

body[data-theme="light"] .login-environment-badge {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.brand-area h1 {
    font-size: clamp(44px, 5.1vw, 64px);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.08;
}

.brand-area p {
    max-width: 820px;
    font-size: clamp(19px, 2vw, 22px);
    opacity: .84;
    line-height: 1.42;
}

.feature-list {
    margin-top: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
    min-height: 32px;
}

    .feature-item i {
        color: #7ab2ff;
        width: 24px;
        font-size: 23px;
        flex: 0 0 24px;
        text-align: center;
    }

.login-trust {
    margin-top: 8px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 16px;
    padding: 12px;
    background: rgba(15, 23, 42, .28);
    backdrop-filter: blur(16px);
    max-width: 610px;
}

.trust-label {
    color: #e2e8f0;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 30px;
    font-size: 13px;
    color: rgba(226, 232, 240, .94);
    line-height: 1.4;
    letter-spacing: .005em;
}

.trust-item i {
    width: 24px;
    flex: 0 0 24px;
    font-size: 22px;
    color: #7ab2ff;
    text-align: center;
}

/* RIGHT */

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 3.5vw, 40px);
    min-width: 0;
}

/* CARD */

.login-card {
    width: 100%;
    max-width: var(--login-card-max-width);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
    border-radius: var(--login-card-radius);
    padding: 28px;
    color: white;
    box-shadow: 0 18px 46px rgba(0,0,0,.24);
}

/* HEADER */

.login-header h2 {
    font-size: 34px;
    font-weight: 700;
}

.login-header p {
    opacity: .7;
    margin-top: 6px;
    margin-bottom: 18px;
}

.login-company-brand {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.login-company-brand .brand-logo {
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: var(--login-control-radius);
    font-size: 28px;
    background: linear-gradient(135deg, #2563eb 0%, #20c7f4 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
}

.login-company-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: var(--login-control-radius);
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .26);
    padding: 4px;
}

.login-company-brand h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.login-company-copy {
    min-width: 0;
}

.login-company-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: rgba(226, 232, 240, .62);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1;
    text-transform: uppercase;
}

.company-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    max-width: 100%;
    min-height: 22px;
    margin-top: 7px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .24);
    border: 1px solid rgba(147, 197, 253, .46);
    color: #eff6ff;
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: .03em;
    overflow-wrap: anywhere;
}

.company-code-badge strong {
    color: inherit;
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: .035em;
}

/* INPUT */

.input-box {
    margin-bottom: 16px;
}

    .input-box label {
        margin-bottom: 7px;
        font-weight: 500;
        letter-spacing: .01em;
        font-size: 14px;
    }

.login-field-note {
    display: block;
    margin-top: 5px;
    color: rgba(226, 232, 240, .62);
    font-size: 12px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

    .input-wrapper i {
        position: absolute;
        top: 50%;
        left: 20px;
        opacity: .5;
        line-height: 1;
        pointer-events: none;
        transform: translateY(-50%);
    }

    .input-wrapper input {
        width: 100%;
        height: var(--login-input-height);
        border: 1px solid rgba(148, 163, 184, .34);
        outline: none;
        border-radius: var(--login-control-radius);
        background: rgba(255,255,255,.08);
        color: white;
        padding-left: 58px;
        padding-right: 64px;
        transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
        font-size: 16px;
    }

    .input-wrapper:hover input {
        border-color: rgba(96, 165, 250, .45);
        background: rgba(255,255,255,.13);
    }

    .input-wrapper input::placeholder {
        color: rgba(226, 232, 240, .72);
    }

    .input-wrapper input:-webkit-autofill,
    .input-wrapper input:-webkit-autofill:hover,
    .input-wrapper input:-webkit-autofill:focus,
    .input-wrapper input:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 1000px rgba(51, 65, 85, .96) inset !important;
        -webkit-text-fill-color: #ffffff !important;
        caret-color: #ffffff;
        border-color: rgba(96, 165, 250, .45);
        transition: background-color 9999s ease-in-out 0s;
    }

    .input-wrapper:has(input:-webkit-autofill) i,
    .input-wrapper:has(input:-webkit-autofill) .toggle-password {
        color: #cbd5e1;
        opacity: 1;
    }

    .input-wrapper input:focus {
        border-color: rgba(96, 165, 250, .62);
        background: rgba(255,255,255,.11);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, .16);
    }

/* TOGGLE */

.toggle-password {
    position: absolute;
    top: 0;
    right: 10px;
    width: 46px;
    height: var(--login-input-height);
    border: none;
    background: transparent;
    color: #e2e8f0;
    transition: color .2s ease, transform .2s ease;
    cursor: pointer;
    min-height: var(--login-input-height);
    padding: 0;
    box-shadow: none;
}

    .toggle-password:hover {
        color: #93c5fd;
        transform: scale(1.06);
        box-shadow: none;
    }

    .toggle-password i {
        position: static;
        opacity: 1;
        transform: none;
    }

/* OPTIONS */

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: 2px;
    margin-bottom: 14px;
    font-size: 13px;
    gap: 12px;
}

    .remember-me-row {
        display: flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
        min-width: 0;
        margin: 0;
}

    .login-options span {
        cursor: pointer;
        color: #60a5fa;
        white-space: nowrap;
    }

/* TERMS */

.terms-box {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.login-options input,
.terms-box input {
    accent-color: #2563eb;
}

.login-options input {
    width: 16px;
    height: 16px;
    min-height: 16px;
    flex: 0 0 16px;
    border-radius: 4px;
}

.login-options a {
    color: #60a5fa;
    font-weight: 600;
    white-space: nowrap;
}

/* BUTTON */

.btn-login {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: var(--login-control-radius);
    background: linear-gradient( 135deg, #2563eb, #3b82f6 );
    color: white;
    font-size: 17px;
    font-weight: 600;
    transition: .2s ease;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
    letter-spacing: .01em;
}

    .btn-login .zt-inline-loading,
    .btn-login > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 30px rgba(37, 99, 235, .30);
    }

    .btn-login:disabled {
        cursor: wait;
        opacity: .72;
        transform: none;
    }

/* ERROR */

.error-text {
    margin-top: 12px;
    color: #f87171;
    text-align: center;
}

.login-error-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid rgba(239, 68, 68, .32);
    border-radius: 13px;
    background: rgba(239, 68, 68, .10);
    color: #fecaca;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.login-error-message[hidden] {
    display: none;
}

.login-error-message i {
    margin-top: 1px;
    color: #f87171;
    font-size: 15px;
    line-height: 1;
}

.login-card.has-login-error .input-wrapper input {
    border-color: rgba(239, 68, 68, .54);
}

/* FOOTER */

.login-footer {
    margin-top: 15px;
    text-align: center;
    display: grid;
    gap: 4px;
    row-gap: 4px;
}

.auth-card {
    margin-inline: auto;
}

.auth-card .auth-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    min-height: 48px;
    border: 1px solid rgba(96, 165, 250, .22);
    border-radius: 14px;
    background: rgba(96, 165, 250, .08);
    color: #60a5fa;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.auth-card .auth-back-link:hover {
    background: rgba(96, 165, 250, .14);
    border-color: rgba(96, 165, 250, .38);
    color: #93c5fd;
}

.auth-success-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid rgba(34, 197, 94, .34);
    border-radius: 13px;
    background: rgba(34, 197, 94, .12);
    color: #bbf7d0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.auth-success-message[hidden] {
    display: none;
}

.auth-success-message i {
    margin-top: 1px;
    color: #22c55e;
    font-size: 15px;
    line-height: 1;
}

.password-strength {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}

.password-strength-track {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, .22);
}

.password-strength-track span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: #94a3b8;
    transition: width .2s ease, background .2s ease;
}

.password-strength small {
    color: rgba(226, 232, 240, .68);
    font-size: 12px;
    font-weight: 700;
}

.password-strength[data-strength="weak"] .password-strength-track span {
    width: 34%;
    background: #ef4444;
}

.password-strength[data-strength="good"] .password-strength-track span {
    width: 68%;
    background: #f59e0b;
}

.password-strength[data-strength="strong"] .password-strength-track span {
    width: 100%;
    background: #22c55e;
}

body[data-theme="light"] .auth-success-message {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

body[data-theme="light"] .auth-success-message i {
    color: #16a34a;
}

body[data-theme="light"] .auth-card .auth-back-link {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

body[data-theme="light"] .auth-card .auth-back-link:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

body[data-theme="light"] .password-strength small {
    color: #64748b;
}

body[data-theme="light"] .password-strength-track {
    background: #e2e8f0;
}

    .login-footer small {
        color: rgba(226, 232, 240, .68);
        font-size: 13px;
        font-weight: 600;
    }

    .login-footer .powered-by-scodeit {
        margin-top: 0;
        color: rgba(226, 232, 240, .42);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .login-footer .login-version {
        color: rgba(226, 232, 240, .48);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .02em;
    }

    .login-footer span {
        color: #60a5fa;
        cursor: pointer;
        font-size: 15px;
        font-weight: 600;
    }

.login-language {
    position: relative;
    margin-top: 14px;
}

.login-language-icon {
    display: none;
}

.login-theme {
    margin-top: 12px;
}

.login-theme-label {
    margin-bottom: 7px;
}

.login-theme-helper {
    margin-top: 8px;
    color: rgba(226, 232, 240, .74);
    font-size: 12px;
    display: inline-block;
}

.login-language-btn {
    width: 100%;
    height: 54px;
    display: block;
    padding: 0 44px 0 20px;
    text-indent: 0;
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: var(--login-control-radius);
    color: #e5e7eb;
    background: rgba(255, 255, 255, .08);
    font-size: 18px;
    font-weight: 600;
    line-height: 54px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.login-language-btn:hover {
    border-color: rgba(96, 165, 250, .7);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}

.login-language-btn span {
    flex: 1;
    text-align: left;
}

.login-language-btn:focus {
    outline: none;
    border-color: rgba(96, 165, 250, .7);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .18);
}

.login-language-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: calc(100% + 10px);
    z-index: 20;
    display: none;
    max-height: min(380px, calc(100vh - 190px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 18px;
    background: rgba(20, 30, 48, .98);
    box-shadow: 0 22px 60px rgba(2, 6, 23, .45);
}

.login-language-menu::-webkit-scrollbar {
    width: 8px;
}

.login-language-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(96, 165, 250, .45);
}

.login-language-menu.show {
    display: grid;
    gap: 6px;
}

.login-language-item {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: #f8fafc;
    background: transparent;
    font-size: 17px;
    font-weight: 500;
    text-align: left;
}

.login-language-item.active,
.login-language-item:hover {
    background: rgba(37, 99, 235, .28);
}

.language-flag {
    width: 32px;
    display: inline-flex;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}

.login-theme {
    margin-top: 16px;
}

.login-theme-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(226, 232, 240, .74);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.login-theme-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: var(--login-control-radius);
    background: rgba(15, 23, 42, .20);
    transition: border-color .2s ease, background .2s ease;
}

.login-theme-option {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #e5e7eb;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.mobile-feature-panel {
    display: none;
}

.login-theme-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: inline-grid;
    place-items: center;
    color: #93c5fd;
    font-size: 15px;
    line-height: 1;
}

.login-theme-icon i,
.login-theme-icon svg {
    width: 17px;
    height: 17px;
    display: block;
    line-height: 17px;
    text-align: center;
}

.login-theme-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-theme-option.active,
.login-theme-option:hover {
    border-color: rgba(96, 165, 250, .68);
    background: rgba(37, 99, 235, .28);
}

.login-theme-option.active {
    color: #ffffff;
}

.login-theme-option.active .login-theme-icon {
    color: #ffffff;
}

/* LIGHT THEME */

body[data-theme="light"] {
    background: #edf4fb;
    color: #0f172a;
    --login-border: rgba(148, 163, 184, .32);
    --login-panel-bg: rgba(255, 255, 255, .86);
    --login-panel-hover: rgba(255, 255, 255, .98);
    --login-muted: #475569;
}

body[data-theme="light"] .login-bg {
    background:
        radial-gradient(circle at 14% 16%, rgba(37, 99, 235, .17), transparent 34%),
        radial-gradient(circle at 76% 84%, rgba(56, 189, 248, .16), transparent 31%),
        radial-gradient(circle at 56% 44%, rgba(14, 165, 233, .12), transparent 46%),
        linear-gradient(135deg, #edf5ff 0%, #f5fbff 44%, #eff6ff 100%);
}

body[data-theme="light"] .login-bg::before {
    background:
        radial-gradient(circle at 16% 20%, rgba(37, 99, 235, .2) 0, transparent 40%),
        radial-gradient(circle at 84% 78%, rgba(14, 165, 233, .16) 0, transparent 38%),
        radial-gradient(circle at 50% 58%, rgba(255, 255, 255, .5) 0, transparent 52%);
    opacity: .48;
    filter: blur(6px);
}

body[data-theme="light"] .login-bg::after {
    background:
        linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(15, 23, 42, .04) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .32) 0, transparent 85%);
    background-size: 74px 74px, 74px 74px, 220px 220px;
    opacity: .8;
    mask-image: linear-gradient(110deg, rgba(0, 0, 0, .84), transparent 72%);
}

body[data-theme="light"] .login-left {
    color: #0f172a;
}

body[data-theme="light"] .brand-area p,
body[data-theme="light"] .login-header p {
    color: #475569;
    opacity: 1;
}

body[data-theme="light"] .feature-item {
    color: #1e293b;
    font-weight: 500;
}

body[data-theme="light"] .feature-item i {
    color: #2563eb;
    filter: saturate(1.08) brightness(1.06);
}

body[data-theme="light"] .trust-item i {
    color: #1d4ed8;
    filter: saturate(1.08) brightness(1.1);
}

body[data-theme="light"] .trust-label,
body[data-theme="light"] .trust-item,
body[data-theme="light"] .login-theme-helper {
    color: #475569;
}

body[data-theme="light"] .login-trust {
    border-color: rgba(148, 163, 184, .28);
    background: rgba(255, 255, 255, .72);
}

body[data-theme="light"] .login-card {
    color: #0f172a;
    background: rgba(255, 255, 255, .98);
    border-color: rgba(203, 213, 225, .96);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .14);
    backdrop-filter: blur(10px);
}

body[data-theme="light"] .company-code-badge {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3a8a;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08);
}

body[data-theme="light"] .login-company-eyebrow {
    color: #64748b;
}

body[data-theme="light"] .login-field-note,
body[data-theme="light"] .login-footer small,
body[data-theme="light"] .login-theme-label {
    color: #475569;
}

body[data-theme="light"] .login-footer .powered-by-scodeit {
    color: #a4afbf;
}

body[data-theme="light"] .login-footer .login-version {
    color: #9aa8ba;
}

body[data-theme="light"] .input-wrapper i,
body[data-theme="light"] .toggle-password {
    color: #64748b;
}

body[data-theme="light"] .input-wrapper input {
    color: #0f172a;
    background: #f8fafc;
    border-color: #cbd5e1;
}

body[data-theme="light"] .input-wrapper input::placeholder {
    color: #94a3b8;
}

body[data-theme="light"] .input-wrapper input:focus {
    border-color: rgba(37, 99, 235, .58);
    background: #ffffff;
}

body[data-theme="light"] .input-wrapper input:-webkit-autofill,
body[data-theme="light"] .input-wrapper input:-webkit-autofill:hover,
body[data-theme="light"] .input-wrapper input:-webkit-autofill:focus,
body[data-theme="light"] .input-wrapper input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
    -webkit-text-fill-color: #172033 !important;
    caret-color: #172033;
}

body[data-theme="light"] .login-error-message {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

body[data-theme="light"] .login-error-message i {
    color: #dc2626;
}

body[data-theme="light"] .login-language-btn,
body[data-theme="light"] .login-theme-options {
    color: #0f172a;
    background: #f8fafc;
    border-color: #cbd5e1;
}

body[data-theme="light"] .login-language-icon {
    color: #64748b;
}

body[data-theme="light"] .login-theme-option {
    color: #0f172a;
}

body[data-theme="light"] .login-theme-icon {
    color: #2563eb;
}

body[data-theme="light"] .login-language-menu {
    background: #ffffff;
    border-color: #dbe3ee;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .16);
}

body[data-theme="light"] .login-language-item {
    color: #172033;
}

body[data-theme="light"] .login-language-item.active,
body[data-theme="light"] .login-language-item:hover,
body[data-theme="light"] .login-theme-option:focus-visible,
body[data-theme="light"] .login-theme-option:hover {
    color: #1d4ed8;
    background: #dbeafe;
}

body[data-theme="light"] .login-theme-option.active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
}

body[data-theme="light"] .login-theme-option.active .login-theme-icon,
body[data-theme="light"] .login-theme-option.active .login-theme-icon {
    color: #ffffff;
}

body[data-theme="light"] .login-theme-helper {
    color: #475569;
}

body[data-theme="light"] .mobile-feature-panel {
    border-color: #dbe3ee;
    background: #f8fafc;
}

body[data-theme="light"] .mobile-feature-panel summary,
body[data-theme="light"] .mobile-feature-chip {
    color: #172033;
}

body[data-theme="light"] .mobile-feature-chip {
    background: #ffffff;
    border-color: #dbe3ee;
}

body[data-theme="light"] .mobile-feature-chips i {
    color: #2563eb;
}

/* MOBILE */

@media (max-width: 992px) {

    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 20px;
        align-items: flex-start;
    }

    .login-card-brand {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 22px;
    }

    .login-card-brand .brand-logo {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
        margin-bottom: 0;
        border-radius: var(--login-control-radius);
        font-size: 36px;
    }

    .login-card-brand .brand-logo-img {
        width: 42px;
        height: 42px;
    }

    .login-card-brand .brand-logo-fallback {
        font-size: 36px;
    }

    .login-card-brand strong,
    .login-card-brand span {
        display: block;
    }

    .login-card-brand strong {
        color: inherit;
        font-size: 20px;
        font-weight: 800;
        line-height: 1.2;
    }

    .login-card-brand span {
        margin-top: 3px;
        color: rgba(226, 232, 240, .72);
        font-size: 11.5px;
        font-weight: 600;
        letter-spacing: .01em;
        text-transform: none;
    }

    body[data-theme="light"] .login-card-brand span {
        color: #64748b;
    }

    .mobile-feature-panel {
        display: block;
        margin-top: 18px;
        border: 1px solid rgba(148, 163, 184, .24);
        border-radius: 14px;
        background: rgba(15, 23, 42, .20);
        overflow: hidden;
    }

    .mobile-feature-panel summary {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 14px;
        color: #f8fafc;
        cursor: pointer;
        font-size: 14px;
        font-weight: 800;
        list-style: none;
    }

    .mobile-feature-panel summary::-webkit-details-marker {
        display: none;
    }

    .mobile-feature-panel summary i {
        color: #60a5fa;
        transition: transform .18s ease;
    }

    .mobile-feature-panel[open] summary i {
        transform: rotate(180deg);
    }

    .mobile-feature-chips {
        display: grid;
        gap: 8px;
        padding: 0 12px 12px;
    }

    .mobile-feature-chip {
        min-height: 42px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 11px;
        border: 1px solid rgba(148, 163, 184, .18);
        border-radius: 12px;
        color: #e5e7eb;
        background: rgba(255, 255, 255, .06);
        font-size: 13px;
        font-weight: 700;
        line-height: 1.25;
    }

    .mobile-feature-chips i {
        width: 22px;
        flex: 0 0 22px;
        font-size: 20px;
        color: #7ab2ff;
        text-align: center;
    }
}

@media (min-width: 993px) {
    body {
        min-height: 100vh;
        min-height: 100svh;
        height: 100vh;
        height: 100svh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body,
    .login-wrapper {
        min-height: 100svh;
        height: 100svh;
    }

    .login-wrapper {
        gap: clamp(14px, 2vw, 18px);
    }

    .login-left {
        padding: clamp(24px, 3.4vw, 42px) clamp(18px, 3vw, 34px);
        gap: 18px;
    }

    .login-right {
        padding: clamp(12px, 2.2vw, 24px);
    }

    .login-card {
        padding: 26px;
    }

    body {
        --login-input-height: 52px;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 14px 14px max(22px, env(safe-area-inset-bottom));
    }

    .login-card {
        padding: 20px;
        border-radius: 16px;
    }

    .login-card-brand {
        gap: 12px;
        margin-bottom: 18px;
    }

    .login-header p {
        margin-bottom: 14px;
    }

    .input-box {
        margin-bottom: 14px;
    }

    .login-options {
        margin-bottom: 12px;
    }

    .login-theme-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .login-theme-option {
        min-height: 48px;
        flex-direction: column;
        gap: 4px;
        padding: 6px 4px;
        white-space: normal;
        justify-content: center;
        text-align: center;
    }

    .login-theme-helper {
        display: block;
        white-space: normal;
    }
}

@media (min-width: 993px) and (max-width: 1180px) {
    .login-wrapper {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 410px);
    }

    .brand-area h1 {
        font-size: clamp(40px, 4.6vw, 52px);
    }

    .login-left {
        padding-inline: clamp(34px, 4.2vw, 54px);
    }
}
