:root {
    --bxclub-auth-black: #151515;
    --bxclub-auth-text: #202020;
    --bxclub-auth-muted: #737373;
    --bxclub-auth-border: #e2e2e2;
    --bxclub-auth-background: #ffffff;
    --bxclub-auth-soft: #f5f6f7;
    --bxclub-auth-accent: #e24a44;
    --bxclub-auth-accent-hover: #cf3d38;
    --bxclub-auth-error: #be3434;
    --bxclub-auth-error-bg: #fff1f1;
    --bxclub-auth-success: #287a49;
    --bxclub-auth-success-bg: #effaf3;
    --bxclub-auth-radius: 14px;
    --bxclub-auth-radius-large: 24px;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body.bxclub-auth-body {
    background: #fff;
    color: var(--bxclub-auth-text);
    font-family: "Montserrat", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.bxclub-auth-body *,
.bxclub-auth-body *::before,
.bxclub-auth-body *::after {
    box-sizing: border-box;
}

.bxclub-auth-body a {
    color: inherit;
}

.bxclub-auth-page {
    width: 100%;
    min-height: 100vh;
}

.bxclub-auth-layout {
    display: grid;
    grid-template-columns: minmax(520px, 47%) minmax(0, 53%);
    min-height: 100vh;
    padding: 18px;
    gap: 18px;
    background: #f4f5f6;
}

.bxclub-auth-layout__form {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 55px 70px;
    border-radius: var(--bxclub-auth-radius-large);
    background: #fff;
}

.bxclub-auth-container {
    width: 100%;
    max-width: 510px;
}

.bxclub-auth-logo {
    display: inline-flex;
    align-items: center;
    max-width: 190px;
    margin-bottom: 20px;
    text-decoration: none;
}

.bxclub-auth-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 65px;
    object-fit: contain;
}

.bxclub-auth-heading {
    margin-bottom: 35px;
}

.bxclub-auth-heading__label {
    margin-bottom: 12px;
    color: var(--bxclub-auth-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.bxclub-auth-heading__title {
    margin: 0 0 15px;
    color: var(--bxclub-auth-black);
    font-size: clamp(34px, 3vw, 48px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.bxclub-auth-heading__description {
    max-width: 470px;
    margin: 0;
    color: var(--bxclub-auth-muted);
    font-size: 15px;
    line-height: 1.7;
}

.bxclub-auth-layout__visual {
    position: relative;
    min-width: 0;
    min-height: calc(100vh - 36px);
    overflow: hidden;
    border-radius: var(--bxclub-auth-radius-large);
    background: #181818;
}

.bxclub-auth-layout__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.bxclub-auth-layout:hover .bxclub-auth-layout__image {
    transform: scale(1.025);
}

.bxclub-auth-layout__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.15) 42%,
            rgba(0, 0, 0, 0.78) 100%
        );
}

.bxclub-auth-promo {
    position: absolute;
    z-index: 2;
    right: 8%;
    bottom: 8%;
    left: 8%;
    max-width: 720px;
    color: #fff;
}

.bxclub-auth-promo__label {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 22px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.bxclub-auth-promo__title {
    max-width: 680px;
    margin-bottom: 18px;
    font-size: clamp(38px, 4vw, 70px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.055em;
}

.bxclub-auth-promo__text {
    max-width: 570px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.65;
}

.bxclub-auth-form {
    width: 100%;
}

.bxclub-auth-field {
    margin-bottom: 22px;
}

.bxclub-auth-field__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 9px;
}

.bxclub-auth-field__label {
    display: block;
    margin-bottom: 9px;
    color: #282828;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.bxclub-auth-field__header .bxclub-auth-field__label {
    margin-bottom: 0;
}

.bxclub-auth-field__required {
    color: var(--bxclub-auth-accent);
}

.bxclub-auth-field__link {
    color: var(--bxclub-auth-muted);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bxclub-auth-field__link:hover {
    color: var(--bxclub-auth-accent);
}

.bxclub-auth-field__input {
    display: block;
    width: 100%;
    height: 58px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--bxclub-auth-border);
    border-radius: var(--bxclub-auth-radius);
    outline: none;
    background: #f8f8f8;
    color: var(--bxclub-auth-text);
    font: inherit;
    font-size: 14px;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.bxclub-auth-field__input::placeholder {
    color: #a0a0a0;
}

.bxclub-auth-field__input:hover {
    border-color: #c8c8c8;
    background: #fff;
}

.bxclub-auth-field__input:focus {
    border-color: var(--bxclub-auth-black);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21, 21, 21, 0.07);
}

.bxclub-auth-password {
    position: relative;
}

.bxclub-auth-password .bxclub-auth-field__input {
    padding-right: 55px;
}

.bxclub-auth-password__toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    outline: none;
    background: transparent;
    color: #979797;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.bxclub-auth-password__toggle:hover,
.bxclub-auth-password__toggle.is-active {
    background: #eeeeee;
    color: var(--bxclub-auth-black);
}

.bxclub-auth-password__toggle svg {
    width: 21px;
    height: 21px;
}

.bxclub-auth-checkbox {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 4px 0 27px;
    cursor: pointer;
}

.bxclub-auth-checkbox__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.bxclub-auth-checkbox__icon {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    background: #fff;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.bxclub-auth-checkbox__icon::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    opacity: 0;
    transform: rotate(45deg) scale(0.7);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.bxclub-auth-checkbox__input:checked + .bxclub-auth-checkbox__icon {
    border-color: var(--bxclub-auth-black);
    background: var(--bxclub-auth-black);
}

.bxclub-auth-checkbox__input:checked + .bxclub-auth-checkbox__icon::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.bxclub-auth-checkbox__text {
    color: var(--bxclub-auth-muted);
    font-size: 12px;
    line-height: 1.6;
}

.bxclub-auth-checkbox__text a {
    color: var(--bxclub-auth-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bxclub-auth-checkbox__text a:hover {
    color: var(--bxclub-auth-accent);
}

.bxclub-auth-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 60px;
    padding: 15px 21px 15px 23px;
    border: 1px solid var(--bxclub-auth-black);
    border-radius: var(--bxclub-auth-radius);
    background: var(--bxclub-auth-black);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.bxclub-auth-submit:hover {
    border-color: var(--bxclub-auth-accent);
    background: var(--bxclub-auth-accent);
    box-shadow: 0 10px 25px rgba(226, 74, 68, 0.2);
}

.bxclub-auth-submit:active {
    transform: translateY(1px);
}

.bxclub-auth-submit svg {
    width: 21px;
    height: 21px;
    transition: transform 0.2s ease;
}

.bxclub-auth-submit:hover svg {
    transform: translateX(4px);
}

.bxclub-auth-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 25px;
    color: var(--bxclub-auth-muted);
    font-size: 13px;
    text-align: center;
}

.bxclub-auth-bottom a {
    color: var(--bxclub-auth-text);
    font-weight: 700;
    text-decoration: none;
}

.bxclub-auth-bottom a:hover {
    color: var(--bxclub-auth-accent);
}

.bxclub-auth-alert {
    margin-bottom: 25px;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.bxclub-auth-alert p,
.bxclub-auth-alert font {
    margin: 0;
    color: inherit !important;
    font: inherit;
}

.bxclub-auth-alert--error {
    border: 1px solid rgba(190, 52, 52, 0.18);
    background: var(--bxclub-auth-error-bg);
    color: var(--bxclub-auth-error);
}

.bxclub-auth-alert--success {
    border: 1px solid rgba(40, 122, 73, 0.18);
    background: var(--bxclub-auth-success-bg);
    color: var(--bxclub-auth-success);
}

.bxclub-auth-alert--info {
    border: 1px solid rgba(65, 101, 170, 0.18);
    background: #f0f5ff;
    color: #345797;
}

.bxclub-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
}

.bxclub-register-grid .bxclub-auth-field {
    margin-bottom: 0;
}

.bxclub-auth-checkbox--agreement {
    margin-top: 27px;
}

.bxclub-auth-captcha {
    margin-top: 25px;
}

.bxclub-auth-captcha__image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    margin-bottom: 15px;
    padding: 10px 15px;
    border: 1px solid var(--bxclub-auth-border);
    border-radius: 12px;
    background: #fff;
}

.bxclub-auth-captcha__image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.bxclub-auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -3px 0 18px;
    color: #a0a0a0;
    font-size: 11px;
    text-transform: uppercase;
}

.bxclub-auth-divider::before,
.bxclub-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e6e6e6;
}

.bxclub-auth-divider span {
    padding: 0 13px;
}

.bxclub-auth-hint {
    margin: -5px 0 25px;
    color: var(--bxclub-auth-muted);
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .bxclub-auth-layout {
        grid-template-columns: minmax(460px, 53%) minmax(0, 47%);
    }

    .bxclub-auth-layout__form {
        padding: 50px 42px;
    }

    .bxclub-register-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .bxclub-auth-layout {
        display: block;
        min-height: 100svh;
        padding: 0;
        background: #fff;
    }

    .bxclub-auth-layout__visual {
        display: none;
    }

    .bxclub-auth-layout__form {
        min-height: 100svh;
        padding: 30px 20px 45px;
        border-radius: 0;
    }

    .bxclub-auth-container {
        max-width: 100%;
    }

    .bxclub-auth-logo {
        max-width: 190px;
        margin-bottom: 40px;
    }

    .bxclub-auth-logo img {
        height: 30px;
    }

    .bxclub-auth-heading {
        margin-bottom: 29px;
    }

    .bxclub-auth-heading__title {
        font-size: 34px;
    }

    .bxclub-auth-heading__description {
        font-size: 14px;
    }

    .bxclub-register-grid {
        display: block;
    }

    .bxclub-register-grid .bxclub-auth-field {
        margin-bottom: 20px;
    }

    .bxclub-auth-field__input {
        height: 56px;
        font-size: 16px;
    }

    .bxclub-auth-submit {
        min-height: 58px;
    }

    .bxclub-auth-bottom {
        flex-wrap: wrap;
    }
}

@media (max-width: 380px) {
    .bxclub-auth-layout__form {
        padding-right: 16px;
        padding-left: 16px;
    }

    .bxclub-auth-heading__title {
        font-size: 30px;
    }

    .bxclub-auth-field__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bxclub-auth-layout__image,
    .bxclub-auth-submit,
    .bxclub-auth-submit svg,
    .bxclub-auth-field__input {
        transition: none;
    }
}

.bxclub-auth-field__hint {
    margin-top: 8px;
    color: var(--bxclub-auth-muted);
    font-size: 11px;
    line-height: 1.5;
}

.bxclub-confirm-email {
    margin-bottom: 25px;
    padding: 15px 18px;
    border: 1px solid var(--bxclub-auth-border);
    border-radius: var(--bxclub-auth-radius);
    background: #f8f8f8;
    color: var(--bxclub-auth-muted);
    font-size: 13px;
    line-height: 1.6;
}

.bxclub-confirm-email strong {
    display: block;
    margin-top: 3px;
    color: var(--bxclub-auth-text);
    font-weight: 700;
}

.bxclub-confirm-code-input {
    height: 72px;
    padding-right: 20px;
    padding-left: 20px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-align: center;
}

.bxclub-confirm-code-input::placeholder {
    letter-spacing: 0.35em;
}

.bxclub-confirm-resend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
    color: var(--bxclub-auth-muted);
    font-size: 12px;
    text-align: center;
}

.bxclub-confirm-resend button {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bxclub-auth-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.bxclub-confirm-resend button:hover {
    color: var(--bxclub-auth-accent);
}

@media (max-width: 480px) {
    .bxclub-confirm-code-input {
        font-size: 24px;
        letter-spacing: 0.25em;
    }

    .bxclub-confirm-resend {
        flex-wrap: wrap;
    }
}