﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, sans-serif;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #020617;
    color: #f8fafc;
}

/* BG */

.login-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient( circle at top left, rgba(37,99,235,.25), transparent 35% ), radial-gradient( circle at bottom right, rgba(16,185,129,.18), transparent 35% ), linear-gradient( 135deg, #020617, #0f172a, #111827 );
}

.login-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .08;
    background-image:
        linear-gradient(rgba(10, 184, 255, .9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 184, 255, .9) 1px, transparent 1px),
        radial-gradient(circle at 70% 32%, rgba(34, 211, 238, .65) 0 2px, transparent 3px),
        radial-gradient(circle at 82% 44%, rgba(34, 211, 238, .55) 0 2px, transparent 3px),
        radial-gradient(circle at 76% 58%, rgba(34, 211, 238, .55) 0 2px, transparent 3px);
    background-size: 72px 72px, 72px 72px, 320px 320px, 360px 360px, 420px 420px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}

/* WRAPPER */

.login-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 460px;
}

/* LEFT */

.login-left {
    padding: 80px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-logo {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #22c4ff 100%);
    color: #ffffff;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 18px 38px rgba(37, 99, 235, .32);
}

img.brand-logo {
    display: block;
    object-fit: contain;
    padding: 8px;
}

img.platform-brand-logo {
    padding: 0;
}

.brand-z-logo {
    font-family: Inter, sans-serif;
}

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

.brand-area h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 18px;
}

.brand-area p {
    font-size: 22px;
    opacity: .8;
}

.feature-list {
    margin-top: 60px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 18px;
}

    .feature-item i {
        color: #60a5fa;
    }

/* RIGHT */

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* CARD */

.login-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
    border-radius: 20px;
    padding: 34px;
    color: white;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

/* HEADER */

.login-header h2 {
    font-size: 34px;
    font-weight: 700;
}

.login-header p {
    opacity: .7;
    margin-top: 8px;
    margin-bottom: 30px;
}

/* INPUT */

.input-box {
    margin-bottom: 24px;
}

    .input-box label {
        margin-bottom: 10px;
        font-weight: 500;
    }

.login-field-note {
    display: block;
    margin-top: 8px;
    color: rgba(226, 232, 240, .62);
    font-size: 12px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

    .input-wrapper i {
        position: absolute;
        top: 18px;
        left: 18px;
        opacity: .5;
    }

    .input-wrapper input {
        width: 100%;
        height: 54px;
        border: 1px solid transparent;
        outline: none;
        border-radius: 15px;
        background: rgba(255,255,255,.08);
        color: white;
        padding-left: 52px;
        padding-right: 52px;
    }

    .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: 0;
    width: 54px;
    height: 54px;
    border: none;
    background: transparent;
    color: white;
}

/* OPTIONS */

.login-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
}

    .login-options span {
        cursor: pointer;
        color: #60a5fa;
    }

/* TERMS */

.terms-box {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
    font-size: 14px;
}

.login-options input,
.terms-box input {
    accent-color: #2563eb;
}

/* BUTTON */

.btn-login {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 15px;
    background: linear-gradient( 135deg, #2563eb, #3b82f6 );
    color: white;
    font-size: 17px;
    font-weight: 600;
    transition: .2s ease;
}

    .btn-login:hover {
        transform: translateY(-2px);
    }

    .btn-login:disabled {
        cursor: wait;
        opacity: .72;
        transform: none;
    }

/* ERROR */

.error-text {
    margin-top: 18px;
    color: #f87171;
    text-align: center;
}

/* FOOTER */

.login-footer {
    margin-top: 26px;
    text-align: center;
    display: grid;
    gap: 6px;
}

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

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

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

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

.login-language-btn {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 20px;
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: 14px;
    color: #e5e7eb;
    background: rgba(255, 255, 255, .08);
    font-size: 18px;
    font-weight: 600;
}

.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;
    bottom: calc(100% + 10px);
    z-index: 20;
    display: none;
    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.show {
    display: grid;
    gap: 6px;
}

.login-language-item {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: #f8fafc;
    background: transparent;
    font-size: 18px;
    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: 4px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 14px;
    background: rgba(15, 23, 42, .20);
}

.login-theme-option {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    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;
}

.login-theme-option > span:not(.login-theme-icon) {
    display: inline-grid;
    gap: 2px;
}

.login-theme-option strong {
    font: inherit;
}

.login-theme-option small {
    display: block;
    color: rgba(226, 232, 240, .62);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
    white-space: normal;
}

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

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

.login-theme-icon svg {
    width: 17px;
    height: 17px;
    display: block;
    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: #eef3f8;
    color: #172033;
}

body[data-theme="light"] .login-bg {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, .12), transparent 34%),
        linear-gradient(135deg, #eef3f8, #f8fafc 48%, #e6edf6);
}

body[data-theme="light"] .login-bg::before {
    opacity: .07;
    background-image:
        linear-gradient(rgba(14, 116, 144, .9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 116, 144, .9) 1px, transparent 1px),
        radial-gradient(circle at 70% 32%, rgba(14, 165, 233, .72) 0 2px, transparent 3px),
        radial-gradient(circle at 82% 44%, rgba(34, 211, 238, .58) 0 2px, transparent 3px),
        radial-gradient(circle at 76% 58%, rgba(37, 99, 235, .48) 0 2px, transparent 3px);
}

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

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

body[data-theme="light"] .feature-item {
    color: #334155;
}

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

body[data-theme="light"] .login-card {
    color: #172033;
    background: #ffffff;
    border-color: #dbe3ee;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .14);
    backdrop-filter: none;
}

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

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

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

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

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-language-btn,
body[data-theme="light"] .login-theme-options {
    color: #172033;
    background: #f8fafc;
    border-color: #dbe3ee;
}

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

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.active,
body[data-theme="light"] .login-theme-option:hover {
    color: #174ea6;
    background: rgba(37, 99, 235, .12);
}

body[data-theme="light"] .login-theme-option.active {
    border-color: rgba(37, 99, 235, .68);
}

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

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: 24px;
    }

    .login-card-brand .brand-logo {
        width: 54px;
        height: 54px;
        flex: 0 0 54px;
        margin-bottom: 0;
        border-radius: 14px;
        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: 12px;
        font-weight: 700;
        letter-spacing: .02em;
        text-transform: uppercase;
    }

    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: 18px;
        flex: 0 0 18px;
        color: #60a5fa;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 14px;
    }

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

    .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;
    }

    .login-theme-option small {
        max-width: 64px;
        margin-inline: auto;
    }
}
