/* =========================
   REGISTER BODY OVERRIDES
========================= */

.register-body {
    --register-header-height: 96px;
}

.register-body .site-main {
    position: relative;
    padding: 0;
}

.register-body .site-main > .site-container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.register-body .site-footer {
    margin-top: 0;
}

.register-body .messages-stack {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 30;
    width: min(520px, calc(100% - 32px));
    margin: 0;
    transform: translateX(-50%);
}

/* =========================
   REGISTER PAGE
========================= */

.register-page {
    width: 100%;
    min-height: calc(100vh - var(--register-header-height));
    margin: 0;
    padding: 0;
    background: #f3f2ee;
    color: #050505;
}

.register-layout {
    width: 100%;
    min-height: calc(100vh - var(--register-header-height));
    display: grid;
    grid-template-columns: 57% 43%;
    background: #f3f2ee;
    overflow: hidden;
}

/* =========================
   LEFT FORM SIDE
========================= */

.register-form-side {
    position: relative;
    min-height: calc(100vh - var(--register-header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        clamp(34px, 3.8vw, 58px)
        clamp(34px, 4vw, 64px)
        clamp(34px, 3.8vw, 58px)
        clamp(96px, 7vw, 126px);
    background: #f3f2ee;
    border-right: 1px solid rgba(0, 0, 0, 0.14);
}

/* =========================
   LEFT DECOR
========================= */

.register-side-note {
    position: absolute;
    left: clamp(28px, 2.7vw, 48px);
    top: clamp(50px, 7vw, 96px);
    bottom: clamp(50px, 7vw, 96px);
    z-index: 2;
    width: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.register-side-note span {
    width: 10px;
    height: 40px;
    display: block;
    background:
        repeating-linear-gradient(
            180deg,
            #ff2118 0 7px,
            transparent 7px 13px
        );
    transform: skewY(-18deg);
}

.register-side-note p {
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.register-side-note::after {
    content: "01";
    display: block;
    color: #050505;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    line-height: 0.82;
    letter-spacing: -0.08em;
    padding-bottom: 12px;
    border-bottom: 4px solid #050505;
}

.register-form-wrap {
    width: min(100%, 640px);
    transform: translateY(28px);
}

.register-heading {
    margin-bottom: clamp(26px, 2.5vw, 34px);
}

.register-heading h1 {
    display: inline-block;
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(54px, 5vw, 82px);
    font-weight: 400;
    line-height: 0.78;
    letter-spacing: -0.085em;
    text-transform: uppercase;
    transform: scaleX(0.96) scaleY(1.16);
    transform-origin: left bottom;
}

.register-heading p {
    margin: clamp(18px, 1.4vw, 22px) 0 0;
    color: rgba(5, 5, 5, 0.58);
    font-size: clamp(13px, 0.95vw, 16px);
    font-weight: 800;
    line-height: 1.25;
}

/* =========================
   FORM
========================= */

.register-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.register-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: rgba(255, 33, 24, 0.08);
    border: 1px solid rgba(255, 33, 24, 0.18);
    color: #b71c1c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.register-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(26px, 3vw, 40px);
    row-gap: clamp(17px, 1.7vw, 23px);
}

.register-field {
    min-width: 0;
}

.register-field--full {
    grid-column: 1 / -1;
}

.register-field label {
    display: block;
    margin-bottom: 7px;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(9px, 0.7vw, 11px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.015em;
    text-transform: uppercase;
}

.register-input-wrap {
    position: relative;
    width: 100%;
}

.register-input-wrap input,
.register-input-wrap select,
.register-input-wrap textarea {
    width: 100% !important;
    height: clamp(36px, 2.5vw, 42px) !important;
    padding: 0 2px !important;
    border: 0 !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.42) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #050505 !important;
    font-size: clamp(13px, 0.9vw, 16px) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.register-input-wrap--password input {
    padding-right: 8px !important;
}

.register-input-wrap input::placeholder,
.register-input-wrap textarea::placeholder {
    color: #a4a4a4;
    font-weight: 700;
    opacity: 1;
}

.register-input-wrap input:focus,
.register-input-wrap select:focus,
.register-input-wrap textarea:focus {
    border-bottom-color: #050505 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.register-input-wrap input:-webkit-autofill,
.register-input-wrap input:-webkit-autofill:hover,
.register-input-wrap input:-webkit-autofill:focus,
.register-input-wrap input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f3f2ee inset !important;
    -webkit-text-fill-color: #050505 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.register-error {
    margin-top: 6px;
    color: #d50000;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

.register-error ul,
.register-alert ul {
    margin: 0;
    padding-left: 17px;
}

/* =========================
   BUTTONS
========================= */

.register-submit {
    width: min(100%, 420px);
    min-height: clamp(48px, 3.7vw, 54px);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: clamp(22px, 2.2vw, 30px);
    padding: 0 20px;
    border: 1px solid #ff2118;
    border-radius: 0;
    background: #ff2118;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(11px, 0.82vw, 14px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.register-submit::after {
    content: "→";
    flex: 0 0 auto;
    font-family: Arial, sans-serif;
    font-size: clamp(18px, 1.2vw, 22px);
    font-weight: 900;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.register-submit:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.register-submit:hover::after {
    transform: translate(4px, -1px);
}

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

.register-policy {
    max-width: 520px;
    margin: 11px 0 0;
    color: rgba(5, 5, 5, 0.5);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.register-policy a {
    color: #050505;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.register-policy a:hover {
    color: #ff2118;
}

/* =========================
   RIGHT BENEFITS
========================= */

.register-benefits {
    min-height: calc(100vh - var(--register-header-height));
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr)) 82px;
    background: #f3f2ee;
}

.register-benefit {
    position: relative;
    display: grid;
    grid-template-columns: minmax(84px, 0.28fr) 86px minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 2.1vw, 34px);
    padding: clamp(24px, 3vw, 42px) clamp(22px, 3vw, 44px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
    background: #f3f2ee;
    color: #050505;
    overflow: hidden;
}

.register-benefit--dark {
    background: #050505;
    color: #ffffff;
}

.register-benefit__number {
    display: inline-block;
    color: #ff2118;
    font-family: var(--font-display);
    font-size: clamp(64px, 6vw, 104px);
    font-weight: 400;
    line-height: 0.72;
    letter-spacing: -0.095em;
    transform: scaleX(0.9) scaleY(1.18);
    transform-origin: left center;
}

.register-benefit__icon {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(5, 5, 5, 0.22);
    padding-right: 20px;
}

.register-benefit--dark .register-benefit__icon {
    border-right-color: rgba(255, 255, 255, 0.26);
}

.register-benefit__icon-img {
    display: block;
    width: clamp(42px, 3vw, 56px);
    height: clamp(42px, 3vw, 56px);
    object-fit: contain;
    filter: none;
}

.register-benefit--dark .register-benefit__icon-img {
    filter: brightness(0) invert(1);
}

.register-benefit__content {
    min-width: 0;
}

.register-benefit__content h2 {
    margin: 0 0 11px;
    color: currentColor;
    font-family: var(--font-display);
    font-size: clamp(22px, 2vw, 34px);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.register-benefit__content p {
    margin: 0;
    color: rgba(5, 5, 5, 0.68);
    font-size: clamp(12px, 0.9vw, 15px);
    font-weight: 700;
    line-height: 1.28;
}

.register-benefit--dark .register-benefit__content p {
    color: rgba(255, 255, 255, 0.72);
}

.register-login-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px clamp(22px, 3vw, 44px);
    background: #f3f2ee;
}

.register-login-action a {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    border: 1px solid rgba(0, 0, 0, 0.42);
    background: transparent;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(10px, 0.76vw, 13px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.register-login-action b {
    font-family: Arial, sans-serif;
    font-size: 21px;
    line-height: 1;
}

.register-login-action a:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1400px) {
    .register-layout {
        grid-template-columns: 57% 43%;
    }

    .register-form-side {
        padding:
            40px
            52px
            40px
            104px;
    }

    .register-side-note {
        left: 32px;
        top: 64px;
        bottom: 64px;
    }

    .register-form-wrap {
        width: min(100%, 610px);
        transform: translateY(26px);
    }

    .register-heading h1 {
        font-size: clamp(52px, 5vw, 76px);
        transform: scaleX(0.96) scaleY(1.15);
    }

    .register-benefit {
        grid-template-columns: 76px 72px minmax(0, 1fr);
        gap: 24px;
        padding: 30px 32px;
    }

    .register-benefit__number {
        font-size: clamp(60px, 5.8vw, 92px);
        transform: scaleX(0.9) scaleY(1.16);
    }

    .register-benefit__icon {
        width: 66px;
        height: 66px;
        padding-right: 16px;
    }

    .register-benefit__icon-img {
        width: 46px;
        height: 46px;
    }

    .register-benefit__content h2 {
        font-size: clamp(20px, 1.9vw, 30px);
    }

    .register-benefit__content p {
        font-size: clamp(12px, 0.85vw, 14px);
    }
}

@media (max-width: 1180px) {
    .register-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .register-form-side {
        min-height: auto;
        padding: 38px 24px 42px;
        border-right: 0;
    }

    .register-side-note {
        display: none;
    }

    .register-form-wrap {
        width: min(100%, 700px);
        transform: none;
    }

    .register-heading h1 {
        font-size: clamp(48px, 8vw, 70px);
        transform: scaleX(0.96) scaleY(1.1);
    }

    .register-benefits {
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto auto;
        border-top: 1px solid rgba(0, 0, 0, 0.14);
    }

    .register-benefit {
        min-height: 220px;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 14px;
        padding: 26px 20px;
        border-right: 1px solid rgba(0, 0, 0, 0.14);
    }

    .register-benefit:nth-child(3) {
        border-right: 0;
    }

    .register-benefit__number {
        font-size: 58px;
        transform: scaleX(0.94) scaleY(1.1);
    }

    .register-benefit__icon {
        width: 54px;
        height: 54px;
        border-right: 0;
        padding-right: 0;
    }

    .register-benefit__icon-img {
        width: 44px;
        height: 44px;
    }

    .register-benefit__content h2 {
        font-size: 23px;
    }

    .register-benefit__content p {
        font-size: 12px;
    }

    .register-login-action {
        grid-column: 1 / -1;
        padding: 18px 20px 22px;
    }
}

@media (max-width: 992px) {
    .register-body {
        --register-header-height: 84px;
    }
}

@media (max-width: 768px) {
    .register-body {
        --register-header-height: 78px;
    }

    .register-form-side {
        padding: 32px 18px 36px;
    }

    .register-form-wrap {
        width: min(100%, 560px);
    }

    .register-heading {
        margin-bottom: 28px;
    }

    .register-heading h1 {
        font-size: clamp(42px, 10vw, 60px);
        transform: scaleX(0.98) scaleY(1.06);
    }

    .register-heading p {
        font-size: 14px;
    }

    .register-form-grid {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .register-submit {
        width: 100%;
        margin-top: 26px;
    }

    .register-benefits {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .register-benefit {
        min-height: auto;
        grid-template-columns: 64px 56px minmax(0, 1fr);
        gap: 18px;
        padding: 22px 18px;
        border-right: 0;
    }

    .register-benefit__number {
        font-size: 48px;
        transform: scaleX(0.96) scaleY(1.06);
    }

    .register-benefit__icon {
        display: flex;
        width: 46px;
        height: 46px;
        border-right: 0;
        padding-right: 0;
    }

    .register-benefit__icon-img {
        width: 36px;
        height: 36px;
    }

    .register-benefit__content h2 {
        margin-bottom: 8px;
        font-size: 22px;
    }

    .register-benefit__content p {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .register-body {
        --register-header-height: 72px;
    }

    .register-form-side {
        padding: 28px 14px 32px;
    }

    .register-heading h1 {
        font-size: clamp(34px, 12vw, 48px);
        transform: none;
        letter-spacing: -0.07em;
    }

    .register-heading p {
        font-size: 13px;
    }

    .register-heading p br {
        display: none;
    }

    .register-field label {
        font-size: 10px;
    }

    .register-input-wrap input,
    .register-input-wrap select,
    .register-input-wrap textarea {
        height: 39px !important;
        font-size: 14px !important;
    }

    .register-submit {
        min-height: 46px;
        padding: 0 16px;
        font-size: 11px;
    }

    .register-policy {
        font-size: 11px;
    }

    .register-benefit {
        grid-template-columns: 54px minmax(0, 1fr);
        padding: 20px 14px;
    }

    .register-benefit__number {
        font-size: 40px;
        transform: none;
    }

    .register-benefit__icon {
        display: none;
    }

    .register-benefit__content h2 {
        font-size: 19px;
    }

    .register-benefit__content p {
        font-size: 11px;
    }

    .register-login-action {
        padding: 16px 14px 20px;
    }

    .register-login-action a {
        min-height: 44px;
        padding: 0 16px;
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .register-form-side {
        padding: 26px 12px 30px;
    }

    .register-heading h1 {
        font-size: 34px;
    }

    .register-submit,
    .register-login-action a {
        font-size: 9px;
    }

    .register-benefit {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .register-benefit__number {
        font-size: 36px;
    }

    .register-benefit__content h2 {
        font-size: 17px;
    }
}