:root {
    --ink: #070711;
    --violet: #7b4dff;
    --violet-deep: #33206f;
    --cyan: #16c8f3;
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.7);
    --line: rgba(255, 255, 255, 0.42);
    --glass-border: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Barlow', system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--white);
    background:
        radial-gradient(ellipse at 50% 88%, rgba(123, 77, 255, 0.34), transparent 44%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.06), transparent 24% 74%, rgba(22, 200, 243, 0.08)),
        linear-gradient(135deg, #090814 0%, #251858 44%, #06152f 100%);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0 32%, rgba(255, 255, 255, 0.055) 32% 32.5%, transparent 32.5% 58%, rgba(22, 200, 243, 0.045) 58% 58.5%, transparent 58.5% 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, transparent 0 8%, rgba(22, 200, 243, 0.08) 8% 9%, transparent 9% 18%, rgba(167, 139, 250, 0.08) 18% 20%, transparent 20% 34%, rgba(255, 255, 255, 0.045) 34% 35%, transparent 35% 52%, rgba(22, 200, 243, 0.07) 52% 54%, transparent 54% 70%, rgba(167, 139, 250, 0.07) 70% 73%, transparent 73% 100%);
    background-size: auto, 86px 86px, 86px 86px, 360px 180px;
    mask-image: radial-gradient(circle at center, black 0%, rgba(0, 0, 0, 0.78) 44%, transparent 82%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, rgba(0, 0, 0, 0.78) 44%, transparent 82%);
    opacity: 0.62;
    animation: registerAnalyticsDrift 56s linear infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        url("data:image/svg+xml,%3Csvg width='760' height='360' viewBox='0 0 760 360' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 258 C96 214 142 226 206 176 S326 80 410 130 S534 236 604 178 S704 92 742 116' stroke='%2322d8eb' stroke-opacity='.30' stroke-width='3'/%3E%3Cpath d='M20 292 C90 284 142 250 214 256 S342 314 420 250 S552 130 628 152 S708 220 742 188' stroke='%23a78bfa' stroke-opacity='.26' stroke-width='2'/%3E%3Cpath d='M18 258 L206 176 L410 130 L604 178 L742 116' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1'/%3E%3Ccircle cx='18' cy='258' r='4' fill='%2322d8eb' fill-opacity='.45'/%3E%3Ccircle cx='206' cy='176' r='4' fill='%23ffffff' fill-opacity='.38'/%3E%3Ccircle cx='410' cy='130' r='4' fill='%23a78bfa' fill-opacity='.48'/%3E%3Ccircle cx='604' cy='178' r='4' fill='%23ffffff' fill-opacity='.34'/%3E%3Ccircle cx='742' cy='116' r='4' fill='%2322d8eb' fill-opacity='.45'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.06) 42% 42.5%, transparent 42.5% 100%);
    background-position: 0 52%, center;
    background-repeat: repeat-x, no-repeat;
    background-size: 760px 360px, auto;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 78%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 78%, transparent);
    opacity: 0.72;
    animation: registerChartFlow 64s linear infinite;
}

.register-shell {
    position: relative;
    z-index: 1;
    width: min(590px, 100%);
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    animation: registerReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.info-panel {
    display: none;
}

.form-panel {
    width: min(450px, 100%);
    position: relative;
    overflow: hidden;
    padding: 38px 48px 34px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background:
        linear-gradient(145deg, rgba(86, 55, 158, 0.62), rgba(19, 23, 83, 0.68)),
        rgba(16, 11, 38, 0.62);
    box-shadow:
        0 28px 68px rgba(3, 4, 18, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: registerCardFloat 14s ease-in-out infinite alternate;
}

.form-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.13), transparent 28%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 42%);
}

.form-panel::after {
    content: "";
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: -70%;
    width: 54%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    transform: rotate(13deg);
    animation: registerCardShine 18s linear infinite;
}

.form-panel > * {
    position: relative;
    z-index: 1;
}

.form-top,
.form-title,
.form-subtitle,
.error,
form,
.form-note {
    animation: registerItemReveal 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.form-title {
    animation-delay: 0.04s;
}

.form-subtitle {
    animation-delay: 0.06s;
}

.error {
    animation-delay: 0.07s;
}

form {
    animation-delay: 0.08s;
}

.form-note {
    animation-delay: 0.14s;
}

.form-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.form-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.form-meta .material-symbols-rounded {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: var(--violet-deep);
    background: var(--white);
    font-size: 16px;
}

.back-link {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.back-link:hover {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-title {
    margin-top: 14px;
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
}

.form-subtitle {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.error {
    margin-top: 18px;
    padding: 11px 13px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 71, 125, 0.16);
    color: #ffe0eb;
    font-size: 13px;
    font-weight: 700;
}

form {
    margin-top: 26px;
}

.form-group {
    margin-bottom: 21px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

input,
select {
    width: 100%;
    min-height: 36px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input {
    padding: 6px 0 7px;
}

select {
    padding: 6px 28px 7px 0;
    cursor: pointer;
}

select option {
    color: #121226;
    background: #ffffff;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

input:focus,
select:focus {
    border-color: var(--cyan);
    box-shadow: 0 1px 0 var(--cyan), 0 8px 22px rgba(22, 200, 243, 0.08);
}

.btn {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #119ddd, #22d8eb);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(4, 213, 240, 0.22);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
    animation: registerButtonPulse 4.5s ease-in-out infinite;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 18px 34px rgba(4, 213, 240, 0.28);
}

.form-note {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

@keyframes registerReveal {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes registerBackgroundFlow {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }

    to {
        background-position: 22px -18px, -28px 16px, 18px 24px, 0 0;
    }
}

@keyframes registerAnalyticsDrift {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }

    to {
        background-position: 0 0, 86px 86px, 86px 86px, 360px 0;
    }
}

@keyframes registerChartFlow {
    from {
        background-position: 0 52%, center;
    }

    to {
        background-position: -760px 52%, center;
    }
}

@keyframes registerCardFloat {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-3px);
    }
}

@keyframes registerCardShine {
    0% {
        left: -70%;
        opacity: 0.14;
    }

    100% {
        left: 118%;
        opacity: 0.14;
    }
}

@keyframes registerItemReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes registerButtonPulse {
    0%,
    100% {
        box-shadow: 0 14px 28px rgba(4, 213, 240, 0.22);
    }

    50% {
        box-shadow: 0 18px 36px rgba(4, 213, 240, 0.34);
    }
}

@media (max-width: 560px) {
    body {
        padding: 16px;
    }

    .register-shell {
        min-height: auto;
        padding: 0;
    }

    .form-panel {
        padding: 32px 26px 28px;
    }

    .form-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-height: 720px) {
    body {
        align-items: flex-start;
    }

    .register-shell {
        min-height: auto;
    }

    .form-panel {
        padding-top: 30px;
        padding-bottom: 28px;
    }

    form {
        margin-top: 20px;
    }

    .form-group {
        margin-bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
.language-toggle-btn.auth-language-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 20;
    height: 38px;
    min-width: 44px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 9px;
    background: rgba(23, 16, 32, 0.72);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.language-toggle-btn.auth-language-toggle:hover {
    background: rgba(124, 58, 237, 0.8);
}
