*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    background: #000;
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: center;
}

.stage {
    position: relative;
    width: 100%;
    max-width: 500px;
    container-type: inline-size;
    container-name: stage;
}

.stage__bg {
    display: block;
    width: 100%;
    height: auto;
}

.promo {
    position: absolute;
    left: 50%;
    top: 25%;
    width: 86%;
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.promo__text {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: translateX(18%);
    clip-path: inset(0 0 0 100%);
    will-change: transform, opacity, clip-path;
}

.promo__text.is-enter {
    animation: slice-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.promo__text.is-hold {
    opacity: 1;
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
}

.promo__text.is-exit {
    animation: slice-out 0.45s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes slice-in {
    0% {
        opacity: 0;
        transform: translateX(18%);
        clip-path: inset(0 0 0 100%);
    }

    35% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
}

.reg-form {
    --unit: 1cqw;
    position: absolute;
    left: 50%;
    bottom: 3%;
    width: 86cqw;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 2.4cqw;
    padding: 3.2cqw;
    border: 0.15cqw solid #374151;
    border-radius: 1.6cqw;
    background: #111827;
    box-shadow: 0 2.5cqw 5cqw -1.2cqw rgba(0, 0, 0, 0.55);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: max(12px, 1.5cqw);
    color: #fff;
}

.field {
    display: block;
}

.field__label {
    display: block;
    margin-bottom: max(6px, 0.8cqw);
    color: #d1d5db;
    font-size: max(11px, 1.4cqw);
    font-weight: 500;
}

.field__optional {
    color: #6b7280;
    font-weight: 400;
}

.field__control {
    position: relative;
}

.field__icon {
    position: absolute;
    top: 50%;
    left: max(10px, 1.2cqw);
    width: max(16px, 2cqw);
    height: max(16px, 2cqw);
    color: #9ca3af;
    transform: translateY(-50%);
    pointer-events: none;
}

.field__input {
    display: block;
    width: 100%;
    padding: max(8px, 1.2cqw) max(12px, 1.6cqw) max(8px, 1.2cqw) max(32px, 4cqw);
    border: 0.15cqw solid #4b5563;
    border-radius: max(6px, 0.8cqw);
    background: #1f2937;
    color: #fff;
    font: inherit;
    font-size: max(12px, 1.5cqw);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.field__input::placeholder {
    color: #9ca3af;
}

.field__input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 0.2cqw #facc15;
}

.field__input--password {
    padding-right: max(36px, 4.8cqw);
}

.field__toggle {
    position: absolute;
    top: 50%;
    right: max(10px, 1.2cqw);
    display: flex;
    padding: 0;
    border: 0;
    background: none;
    color: #9ca3af;
    transform: translateY(-50%);
    cursor: pointer;
}

.field__toggle:hover {
    color: #d1d5db;
}

.field__toggle-icon {
    width: max(16px, 2cqw);
    height: max(16px, 2cqw);
}

.field__hint {
    display: block;
    margin-top: 0.4cqw;
    color: #9ca3af;
    font-size: max(10px, 1.2cqw);
}

.field__error {
    display: none;
    margin-top: 0.4cqw;
    color: #f87171;
    font-size: max(10px, 1.2cqw);
}

.field__error.is-visible {
    display: block;
}

.field__input.is-invalid {
    border-color: #f87171;
}

.form-status {
    min-height: 1.2em;
    font-size: max(11px, 1.3cqw);
    line-height: 1.4;
}

.form-status.is-error {
    color: #f87171;
}

.form-status.is-success {
    color: #4ade80;
}

.captcha {
    display: flex;
    align-items: center;
    gap: 1.2cqw;
}

.captcha__box {
    flex: 0 0 auto;
    display: flex;
    padding: 0.8cqw;
    border: 0.15cqw solid #4b5563;
    border-radius: 0.8cqw;
    background: #1f2937;
    cursor: pointer;
}

.captcha__box:hover {
    background: #273244;
}

.captcha__image {
    display: block;
    width: max(72px, 10cqw);
    height: max(24px, 3.4cqw);
    object-fit: contain;
    border-radius: 0.4cqw;
    background: #c0c0c0;
}

.captcha__image:not([src]),
.captcha__image[src=""] {
    opacity: 0.35;
}

.captcha__input {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 1.2cqw;
}

.otp {
    display: flex;
    align-items: center;
    gap: 1.2cqw;
}

.otp__input {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 1.2cqw;
}

.otp__send {
    flex: 0 0 auto;
    padding: max(8px, 1.2cqw) max(10px, 1.4cqw);
    border: 0;
    border-radius: max(6px, 0.8cqw);
    background: #facc15;
    color: #111827;
    font: inherit;
    font-size: max(11px, 1.3cqw);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.otp__send:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8cqw;
    width: 100%;
    padding: max(10px, 1.6cqw);
    border: 0;
    border-radius: max(6px, 0.8cqw);
    background: linear-gradient(to right, #facc15, #eab308);
    color: #111827;
    font: inherit;
    font-size: max(14px, 1.8cqw);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.register-btn:hover:not(:disabled) {
    background: linear-gradient(to right, #eab308, #ca8a04);
    transform: scale(1.05);
}

.register-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.register-btn:active {
    transform: scale(1);
}

.register-btn__icon {
    width: max(18px, 2.4cqw);
    height: max(18px, 2.4cqw);
}

.bonus {
    margin-top: 0.4cqw;
    padding: 1.6cqw;
    border: 0.15cqw solid rgba(250, 204, 21, 0.3);
    border-radius: 0.8cqw;
    background: linear-gradient(to right, rgba(250, 204, 21, 0.1), rgba(234, 179, 8, 0.1));
    text-align: center;
}

.bonus__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8cqw;
    margin-bottom: 0.8cqw;
    color: #facc15;
    font-size: max(13px, 1.6cqw);
    font-weight: 700;
}

.bonus__icon {
    width: 2cqw;
    height: 2cqw;
}

.bonus__text {
    color: #d1d5db;
    font-size: max(11px, 1.4cqw);
    line-height: 1.4;
}

@container stage (max-width: 480px) {
    .reg-form {
        width: 80cqw;
        gap: 1.8cqw;
        padding: 2.2cqw 2.6cqw;
        border-radius: 1.4cqw;
        font-size: 2.8cqw;
    }

    .field__label {
        margin-bottom: 0.5cqw;
        font-size: 2.5cqw;
    }

    .field__icon {
        left: 2cqw;
        width: 3.4cqw;
        height: 3.4cqw;
    }

    .field__input {
        padding: 1.5cqw 2cqw 1.5cqw 6.4cqw;
        border-radius: 0.8cqw;
        font-size: 2.7cqw;
    }

    .field__input--password {
        padding-right: 6.8cqw;
    }

    .field__toggle {
        right: 2cqw;
    }

    .field__toggle-icon {
        width: 3.4cqw;
        height: 3.4cqw;
    }

    .field__hint,
    .field__error,
    .form-status {
        font-size: 2.2cqw;
    }

    .captcha {
        gap: 1.2cqw;
    }

    .captcha__box {
        padding: 0.6cqw;
    }

    .captcha__image {
        width: 16cqw;
        height: 5.4cqw;
    }

    .captcha__input,
    .otp__input {
        padding-left: 2cqw;
    }

    .otp {
        gap: 1.2cqw;
    }

    .otp__send {
        padding: 1.5cqw 2cqw;
        font-size: 2.4cqw;
    }

    .register-btn {
        gap: 1cqw;
        padding: 1.8cqw;
        font-size: 3cqw;
    }

    .register-btn__icon {
        width: 3.6cqw;
        height: 3.6cqw;
    }

    .bonus {
        padding: 1.4cqw;
    }

    .bonus__title {
        margin-bottom: 0.5cqw;
        font-size: 2.6cqw;
    }

    .bonus__icon {
        width: 3.2cqw;
        height: 3.2cqw;
    }

    .bonus__text {
        font-size: 2.3cqw;
    }
}

@container stage (max-width: 360px) {
    .reg-form {
        width: 78cqw;
        gap: 1.5cqw;
        padding: 2cqw;
    }

    .captcha {
        flex-wrap: nowrap;
    }
}

@keyframes slice-out {
    0% {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }

    100% {
        opacity: 0.35;
        transform: translateX(-28%);
        clip-path: inset(0 100% 0 0);
    }
}