/* Gl1tchVisual — страница входа */

:root {
    --gva-bg: #101013;
    --gva-panel: #17171c;
    --gva-panel-2: #1d1d23;
    --gva-line: rgba(255, 255, 255, 0.08);
    --gva-line-strong: rgba(255, 255, 255, 0.14);
    --gva-text: #f4f1ec;
    --gva-muted: #9b9ba6;
    --gva-primary: #ff7a18;
    --gva-primary-light: #ff9b4d;
    --gva-green: #2ecc71;
    --gva-danger: #ff5f66;
    --gva-radius: 26px;
    --gva-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body.gva-body {
    min-height: 100vh;
    background: var(--gva-bg);
    color: var(--gva-text);
    font-family: "Onest", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.gva-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(900px 600px at 78% -6%, rgba(255, 123, 29, 0.14), transparent 68%),
        radial-gradient(700px 560px at 4% 86%, rgba(46, 204, 113, 0.06), transparent 70%),
        linear-gradient(180deg, #151519 0%, #101013 42%, #0d0d10 100%);
}

.gva-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}

.gva-orb--one {
    width: 560px;
    height: 560px;
    top: -220px;
    right: -120px;
    background: rgba(255, 123, 29, 0.24);
}

.gva-orb--two {
    width: 480px;
    height: 480px;
    left: -180px;
    bottom: -220px;
    background: rgba(255, 123, 29, 0.1);
}

.gva-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 10%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 10%, transparent 78%);
}

.gva-watermark {
    position: absolute;
    width: 720px;
    height: 720px;
    right: -240px;
    bottom: -300px;
    opacity: 0.035;
    transform: rotate(-12deg);
    filter: grayscale(1);
}

.gva-top {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 0 10px;
}

.gva-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.gva-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(255, 123, 29, 0.24));
}

.gva-brand-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.gva-brand-name span {
    background: linear-gradient(90deg, #ff7a18 0%, #ffb15c 42%, #2ecc71 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gva-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gva-muted);
    font-size: 13.5px;
    transition: color 0.2s ease;
}

.gva-back i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.gva-back:hover {
    color: #fff;
}

.gva-back:hover i {
    transform: translateX(-3px);
}

.gva-main {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    min-height: calc(100vh - 104px);
    display: flex;
    align-items: center;
    padding: 26px 0 54px;
}

.gva-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

/* ---------- Левая витрина с ключом ---------- */

.gva-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 650px;
    padding: 46px;
    border: 1px solid var(--gva-line);
    border-radius: 32px;
    overflow: hidden;
    background:
        radial-gradient(620px 420px at 52% 24%, rgba(255, 123, 29, 0.16), transparent 68%),
        radial-gradient(460px 360px at 12% 92%, rgba(46, 204, 113, 0.055), transparent 72%),
        linear-gradient(150deg, #1c1a18 0%, #17171c 52%, #121216 100%);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.gva-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 78% 62% at 50% 26%, #000 8%, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 26%, #000 8%, transparent 76%);
    pointer-events: none;
}

.gva-key-stage {
    position: absolute;
    top: 26px;
    left: 0;
    right: 0;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gva-key-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.gva-key-ring--outer {
    width: 320px;
    height: 320px;
    animation: gvaSpin 34s linear infinite;
    border-style: dashed;
    border-color: rgba(255, 123, 29, 0.18);
}

.gva-key-ring--inner {
    width: 220px;
    height: 220px;
    border-color: rgba(255, 255, 255, 0.06);
}

.gva-key-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 123, 29, 0.34), rgba(255, 123, 29, 0) 68%);
    filter: blur(14px);
}

.gva-key {
    position: relative;
    z-index: 2;
    width: 300px;
    max-width: 78%;
    transform: rotate(-16deg);
    filter: drop-shadow(0 22px 38px rgba(255, 123, 29, 0.28));
}

.gva-key-chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid var(--gva-line-strong);
    border-radius: 999px;
    background: rgba(18, 18, 22, 0.82);
    color: #dedae2;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.gva-key-chip i {
    color: var(--gva-primary-light);
}

.gva-key-chip--top {
    top: 62px;
    right: 58px;
}

.gva-key-chip--bottom {
    bottom: 54px;
    left: 52px;
}

@keyframes gvaSpin {
    to { transform: rotate(360deg); }
}

.gva-visual-badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 123, 29, 0.32);
    border-radius: 999px;
    background: rgba(255, 123, 29, 0.08);
    color: #ffc18b;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gva-visual h2 {
    position: relative;
    z-index: 2;
    max-width: 440px;
    font-size: clamp(38px, 3.8vw, 50px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.gva-visual h2::first-line {
    color: #fff;
}

.gva-visual p {
    position: relative;
    z-index: 2;
    max-width: 430px;
    margin-top: 18px;
    color: var(--gva-muted);
    font-size: 14.5px;
    line-height: 1.65;
}

.gva-visual-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    list-style: none;
}

.gva-visual-list li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--gva-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: #c8c5cc;
    font-size: 11.5px;
}

.gva-visual-list i {
    color: var(--gva-primary-light);
    font-size: 10px;
}

/* ---------- Правая карточка ---------- */

.gva-card-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.gva-card {
    flex: 1;
    padding: 38px 38px 34px;
    border: 1px solid var(--gva-line);
    border-radius: 30px;
    background: rgba(20, 20, 25, 0.88);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.gva-card-head {
    margin-bottom: 26px;
}

.gva-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--gva-primary-light);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gva-eyebrow i {
    color: var(--gva-green);
}

.gva-card h1 {
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.gva-card-head p {
    margin-top: 10px;
    color: var(--gva-muted);
    font-size: 14px;
    line-height: 1.55;
}

.gva-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gva-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.gva-field label {
    display: block;
    margin-bottom: 7px;
    color: #c4c1c9;
    font-size: 12.5px;
    font-weight: 500;
}

.gva-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gva-mini-link {
    color: var(--gva-muted);
    font-size: 11.5px;
    transition: color 0.2s ease;
}

.gva-mini-link:hover {
    color: var(--gva-primary-light);
}

.gva-input {
    position: relative;
    display: flex;
    align-items: center;
}

.gva-input > i {
    position: absolute;
    left: 16px;
    color: #77747e;
    font-size: 13px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.gva-input input {
    width: 100%;
    height: 52px;
    padding: 0 46px 0 44px;
    border: 1px solid var(--gva-line-strong);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.035);
    color: var(--gva-text);
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.gva-input input::placeholder {
    color: #67646d;
}

.gva-input input:focus {
    border-color: rgba(255, 123, 29, 0.62);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(255, 123, 29, 0.09);
}

.gva-input:focus-within > i {
    color: var(--gva-primary-light);
}

.gva-eye {
    position: absolute;
    right: 8px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #77747e;
    font-size: 13px;
    transition: color 0.2s ease, background 0.2s ease;
}

.gva-eye:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.gva-hint {
    margin-top: 7px;
    color: #77747e;
    font-size: 11.5px;
    line-height: 1.45;
}

.gva-2fa {
    padding: 14px;
    border: 1px solid rgba(255, 123, 29, 0.3);
    border-radius: 16px;
    background: rgba(255, 123, 29, 0.06);
}

.gva-2fa label {
    color: #ffc18b;
}

.gva-captcha {
    padding: 13px;
    border: 1px solid var(--gva-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.gva-captcha-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
    color: #c4c1c9;
    font-size: 11.5px;
    font-weight: 500;
}

.gva-captcha-head span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.gva-captcha-head i {
    color: var(--gva-primary-light);
    font-size: 11px;
}

.gva-captcha-head small {
    color: #6f6c75;
    font-size: 10px;
    letter-spacing: 0.04em;
}

.gva-turnstile {
    min-height: 65px;
    display: flex;
    justify-content: center;
}

.gva-turnstile > div {
    margin: 0 auto !important;
}

.gva-error {
    padding: 12px 14px;
    border: 1px solid rgba(255, 95, 102, 0.32);
    border-radius: 12px;
    background: rgba(255, 95, 102, 0.09);
    color: #ffb3b7;
    font-size: 12.5px;
    line-height: 1.45;
}

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

.gva-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    margin-top: 3px;
    border: 1px solid rgba(255, 160, 80, 0.5);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffb15c 0%, #ff7a18 52%, #e86908 100%);
    color: #1b1209;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 34px rgba(255, 123, 29, 0.24);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.gva-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(255, 123, 29, 0.32);
    filter: brightness(1.04);
}

.gva-submit:active {
    transform: translateY(0);
}

.gva-submit-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.gva-submit-label i {
    font-size: 12px;
}

.gva-submit[disabled] {
    cursor: wait;
    opacity: 0.75;
    transform: none;
}

.gva-spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(27, 18, 9, 0.25);
    border-top-color: #1b1209;
    border-radius: 50%;
    animation: gvaSpin 0.7s linear infinite;
}

.gva-submit.is-loading .gva-submit-label {
    display: none;
}

.gva-submit.is-loading .gva-spinner {
    display: block;
}

.gva-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
    color: #6f6c75;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gva-divider::before,
.gva-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gva-line);
}

.gva-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--gva-line-strong);
    border-radius: 14px;
    color: #d8d4dc;
    font-size: 13px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.gva-secondary:hover {
    border-color: rgba(255, 123, 29, 0.45);
    background: rgba(255, 123, 29, 0.06);
    color: #fff;
}

.gva-secondary i {
    color: var(--gva-primary-light);
    font-size: 12px;
}

.gva-terms {
    margin-top: -2px;
    color: #6f6c75;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.gva-terms a {
    color: var(--gva-primary-light);
}

.gva-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 8px;
    color: #6f6c75;
    font-size: 10.5px;
}

.gva-card-foot span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gva-card-foot i {
    color: var(--gva-green);
    font-size: 9px;
}

.gva-card-foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8e8a94;
    transition: color 0.2s ease;
}

.gva-card-foot a:hover {
    color: var(--gva-primary-light);
}

/* ---------- Состояние «уже вошли» / бан ---------- */

.gva-state {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gva-state-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 95, 102, 0.28);
    border-radius: 16px;
    background: rgba(255, 95, 102, 0.08);
    color: var(--gva-danger);
    font-size: 20px;
}

.gva-state-icon--ok {
    border-color: rgba(46, 204, 113, 0.3);
    background: rgba(46, 204, 113, 0.08);
    color: var(--gva-green);
}

.gva-state h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.gva-state > p {
    color: var(--gva-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.gva-state-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--gva-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.gva-state-user strong {
    display: block;
    color: #fff;
    font-size: 14px;
}

.gva-state-user small {
    display: block;
    margin-top: 2px;
    color: var(--gva-muted);
    font-size: 11.5px;
}

.gva-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #ff9b4d, #e86908);
    color: #1b1209;
    font-size: 17px;
    font-weight: 800;
}

.gva-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 4px;
}

.gva-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 600;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.gva-btn:hover {
    transform: translateY(-1px);
}

.gva-btn--primary {
    border: 1px solid rgba(255, 160, 80, 0.5);
    background: linear-gradient(135deg, #ffb15c, #ff7a18 60%, #e86908);
    color: #1b1209;
    box-shadow: 0 14px 30px rgba(255, 123, 29, 0.2);
}

.gva-btn--ghost {
    border: 1px solid var(--gva-line-strong);
    color: #d8d4dc;
}

.gva-btn--ghost:hover {
    border-color: rgba(255, 123, 29, 0.42);
    background: rgba(255, 123, 29, 0.06);
}

.gva-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8e8a94;
    font-size: 11.5px;
    transition: color 0.2s ease;
}

.gva-logout:hover {
    color: var(--gva-danger);
}

/* ---------- Адаптив ---------- */

@media (max-width: 1040px) {
    .gva-shell {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .gva-visual {
        padding: 34px;
    }

    .gva-visual h2 {
        font-size: 40px;
    }

    .gva-card {
        padding: 32px 30px 28px;
    }
}

@media (max-width: 900px) {
    .gva-main {
        min-height: auto;
        padding: 18px 0 34px;
    }

    .gva-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .gva-visual {
        display: none;
    }

    .gva-card {
        padding: 30px 26px 26px;
    }

    .gva-card-foot {
        padding: 0 4px 6px;
    }
}

@media (max-width: 560px) {
    .gva-top {
        width: calc(100% - 32px);
        padding: 18px 0 6px;
    }

    .gva-main {
        width: calc(100% - 24px);
        padding: 12px 0 24px;
    }

    .gva-brand-logo {
        width: 36px;
        height: 36px;
    }

    .gva-brand-name {
        font-size: 15px;
    }

    .gva-back {
        font-size: 12px;
    }

    .gva-card {
        padding: 24px 18px 22px;
        border-radius: 24px;
    }

    .gva-card h1 {
        font-size: 29px;
    }

    .gva-card-head {
        margin-bottom: 22px;
    }

    .gva-card-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    .gva-input input {
        height: 50px;
    }

    .gva-submit {
        height: 52px;
    }

    .gva-state-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gva-btn {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .gva-brand-name {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
