:root {
    --bg-01: #070912;
    --bg-02: #111827;
    --purple: #7c3aed;
    --purple-soft: #a78bfa;
    --white: #ffffff;
    --text-soft: #d6dbe8;
    --input: rgba(255, 255, 255, 0.97);
    --card: rgba(15, 23, 42, 0.72);
    --border: rgba(255, 255, 255, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    overflow: hidden;
}

body {
    color: var(--white);
    background: radial-gradient(circle at 42% 96%, rgba(124, 58, 237, 0.42), transparent 34%), linear-gradient(110deg, #05060d 0%, #090b16 34%, #2b0b4f 52%, #141d2d 76%, #111827 100%);
}

.login-page {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
    align-items: center;
    padding: clamp(26px, 4vh, 42px) clamp(55px, 6vw, 105px);
    gap: clamp(45px, 6vw, 100px);
    overflow: hidden;
}

    .login-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(108deg, transparent 0 49%, rgba(255,255,255,.04) 49% 49.15%, transparent 49.15% 100%), radial-gradient(circle at 72% 24%, rgba(167,139,250,.10), transparent 24%);
        pointer-events: none;
    }

.login-brand-section,
.login-form-section,
.login-footer,
.login-open-ticket,
.login-version {
    position: relative;
    z-index: 1;
}

.login-brand-section {
    max-width: 560px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    margin-bottom: 26px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: #ede9fe;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.login-logo-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.login-mark {
    width: clamp(230px, 16vw, 300px);
    height: auto;
}

.login-title {
    max-width: 520px;
    margin: 24px 0 0;
    font-size: clamp(26px, 2vw, 34px);
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 850;
}

    .login-title span {
        color: var(--purple-soft);
    }

.login-description {
    max-width: 480px;
    margin: 14px 0 0;
    color: var(--text-soft);
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.55;
}

.login-line {
    width: min(350px, 100%);
    height: 1px;
    margin-top: 26px;
    background: linear-gradient(90deg, rgba(167,139,250,.8), rgba(255,255,255,.14), transparent);
}

.login-hero-3d,
.login-scene-3d,
.login-cube,
.hero-cube,
.cube-container,
.cube-wrapper {
    display: none !important;
}

.login-form-section {
    display: flex;
    justify-content: center;
    padding-right: 0;
}

.login-card-wrap {
    width: min(100%, 390px);
    position: relative;
}

    .login-card-wrap::before {
        content: "";
        position: absolute;
        inset: -7px;
        border-radius: 23px;
        background: linear-gradient(140deg, rgba(255,255,255,.12), rgba(124,58,237,.10), rgba(255,255,255,.025));
        border: 1px solid rgba(255,255,255,.08);
    }

.login-card {
    position: relative;
    padding: clamp(24px, 3vh, 32px);
    border: 1px solid var(--border);
    border-radius: 19px;
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035)), var(--card);
    box-shadow: 0 18px 40px rgba(0,0,0,.30);
    backdrop-filter: blur(20px);
}

.login-card-header {
    margin-bottom: 20px;
    text-align: center;
}

    .login-card-header h2 {
        margin: 0;
        font-size: clamp(24px, 2vw, 30px);
        line-height: 1;
        letter-spacing: -.035em;
        font-weight: 850;
    }

    .login-card-header p {
        margin: 8px 0 0;
        color: var(--text-soft);
        font-size: 14px;
    }

.login-field {
    margin-bottom: 14px;
}

    .login-field label {
        display: block;
        margin-bottom: 7px;
        color: #eef2ff;
        font-size: 13px;
        font-weight: 800;
    }

.login-control {
    position: relative;
}

    .login-control i {
        position: absolute;
        top: 50%;
        left: 15px;
        font-size: 15px;
        transform: translateY(-50%);
        color: var(--purple);
        pointer-events: none;
    }

    .login-control input {
        width: 100%;
        height: 48px;
        border: 1px solid transparent;
        border-radius: 11px;
        background: var(--input);
        color: #111827;
        padding: 0 44px;
        outline: none;
        font-size: 14px;
        box-shadow: 0 8px 18px rgba(0,0,0,.12);
        transition: border-color .18s ease, box-shadow .18s ease;
    }

        .login-control input::placeholder {
            color: #6b7280;
        }

        .login-control input:focus {
            border-color: var(--purple-soft);
            box-shadow: 0 0 0 4px rgba(124,58,237,.18), 0 8px 18px rgba(0,0,0,.12);
        }

.login-toggle-password {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    transform: translateY(-50%);
    background: rgba(124,58,237,.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .login-toggle-password i {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        color: #6d28d9;
        font-size: 16px;
        line-height: 1;
    }

.login-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 15px;
}

    .login-forgot-row a {
        color: var(--white);
        font-size: 12.5px;
        font-weight: 800;
        text-decoration: none;
    }

        .login-forgot-row a:hover {
            text-decoration: underline;
        }

.login-submit-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #8b5cf6, #673ab7);
    color: var(--white);
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(103,58,183,.28);
}

    .login-submit-btn:hover {
        filter: brightness(1.07);
    }

.login-support {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.12);
}

    .login-support a {
        color: #ede9fe;
        font-size: 12.5px;
        font-weight: 700;
        text-decoration: none;
    }

        .login-support a:hover {
            text-decoration: underline;
        }

.login-open-ticket {
    position: fixed;
    left: 24px;
    bottom: 20px;
    height: 38px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #8b5cf6, #673ab7);
    color: var(--white);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(0,0,0,.24);
}

.login-footer {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(520px, calc(100% - 330px));
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    color: var(--white);
    font-size: 12.5px;
    font-weight: 800;
    text-align: center;
}

    .login-footer span {
        white-space: nowrap;
    }

.login-version {
    position: fixed;
    right: 32px;
    bottom: 20px;
    color: var(--white);
    font-size: 12.5px;
    font-weight: 800;
}

.login-page-centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-page-centered .login-form-section {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-page-centered .login-card-wrap {
        margin: 0 auto;
    }

@media (max-width: 1180px) {
    html,
    body {
        height: 100dvh;
        overflow: hidden;
    }

    .login-page {
        height: 100dvh;
        min-height: 100dvh;
        grid-template-columns: 1fr;
        padding: 32px 20px 24px;
        gap: 24px;
        text-align: center;
        align-content: center;
    }

    .login-brand-section {
        margin: 0 auto;
    }

    .login-logo-row {
        justify-content: center;
        gap: 14px;
    }

    .login-mark {
        width: 210px;
    }

    .login-badge,
    .login-title,
    .login-description,
    .login-line {
        display: none;
    }

    .login-form-section {
        justify-content: center;
        padding-right: 0;
    }

    .login-card-wrap {
        width: min(100%, 380px);
    }

    .login-card {
        padding: 24px 22px;
    }

    .login-footer {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 4px;
        display: flex;
        flex-direction: column;
        gap: 3px;
        font-size: 11px;
        font-weight: 700;
    }

    .login-version,
    .login-open-ticket {
        display: none;
    }
}

@media (max-width: 560px) {
    .login-page {
        padding: 34px 16px 18px;
        gap: 22px;
    }

    .login-mark {
        width: 185px;
    }

    .login-card-wrap {
        width: min(100%, 340px);
    }

    .login-card {
        padding: 22px 20px;
    }

    .login-card-header {
        margin-bottom: 18px;
    }

        .login-card-header h2 {
            font-size: 24px;
        }

        .login-card-header p {
            font-size: 12px;
        }

    .login-field {
        margin-bottom: 13px;
    }

    .login-control input {
        height: 45px;
        font-size: 13px;
    }

    .login-submit-btn {
        height: 45px;
        font-size: 14px;
    }

    .login-support {
        margin-top: 14px;
        padding-top: 14px;
    }

    .login-footer span {
        white-space: normal;
    }
}
