:root {
    --register-gold: #c58b2b;
    --register-gold-bright: #edc46a;
    --register-gold-muted: #85632e;
    --register-copy: #e7d9bb;
    --register-ink: #09090e;
    --register-line: rgba(197, 139, 43, 0.62);
}


html.wp-register-new-root,
html.wp-register-new-root body {
    min-height: 100%;
}

.wp-register-new-page {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--register-copy);
    background: #06060a;
    font-family: "EB Garamond", Georgia, serif;
}

.wp-register-new-page *,
.wp-register-new-page *::before,
.wp-register-new-page *::after {
    box-sizing: border-box;
}

.wp-register-new-page .wp-bg {
    background-position: center center;
}

.wp-register-new-page .wp-bg::after {
    background:
        radial-gradient(circle at 50% 34%, rgba(5, 14, 24, 0.12), rgba(2, 5, 9, 0.62) 76%),
        linear-gradient(90deg, rgba(2, 5, 9, 0.22), rgba(2, 6, 11, 0.12) 48%, rgba(2, 5, 9, 0.34));
}

.wp-register-main {
    position: relative;
    z-index: 2;
    flex: 1 0 auto;
    width: 100%;
    padding: clamp(66px, 6vw, 86px) clamp(16px, 4vw, 58px) 38px;
}

.wp-register-card {
    position: relative;
    isolation: isolate;
    width: min(1060px, 100%);
    min-height: 860px;
    margin: 0 auto;
    padding: 44px clamp(34px, 5vw, 65px) 24px;
    background:
        linear-gradient(
            118deg,
            rgba(9, 9, 14, 0.82) 0%,
            rgba(12, 11, 18, 0.76) 52%,
            rgba(18, 13, 24, 0.8) 100%
        );
    background-color: transparent;
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 225, 160, 0.035);
    backdrop-filter: none;
}

.wp-register-edge {
    position: absolute;
    z-index: 0;
    display: block;
    pointer-events: none;
    opacity: 0.9;
}

.wp-register-edge--top,
.wp-register-edge--bottom {
    left: 27px;
    right: 27px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--register-gold-muted) 5%, var(--register-gold) 50%, var(--register-gold-muted) 95%, transparent);
}

.wp-register-edge--top { top: 7px; }
.wp-register-edge--bottom { bottom: 7px; }

.wp-register-edge--left,
.wp-register-edge--right {
    top: 27px;
    bottom: 27px;
    width: 1px;
    background: linear-gradient(transparent, var(--register-gold-muted) 5%, var(--register-gold) 50%, var(--register-gold-muted) 95%, transparent);
}

.wp-register-edge--left { left: 7px; }
.wp-register-edge--right { right: 7px; }

.wp-register-corner {
    position: absolute;
    z-index: 1;
    display: block;
    width: auto;
    max-width: none;
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(204, 151, 49, 0.2));
}

.wp-register-corner--tl { top: 0; left: 0; width: 70px; }
.wp-register-corner--tr { top: 0; right: 0; width: 70px; }
.wp-register-corner--bl { bottom: 0; left: 0; width: 78px; }
.wp-register-corner--br { right: 0; bottom: 0; width: 78px; }

.wp-register-heading {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 116px;
    margin-bottom: 7px;
    text-align: center;
}

.wp-register-emblem {
    position: absolute;
    z-index: 6;
    top: calc(var(--wp-frame-w) * -48 / 52);
    left: 50%;
    width: calc(var(--wp-frame-w) * 130 / 52);
    height: calc(var(--wp-frame-w) * 92 / 52);
    max-width: none;
    transform: translateX(-50%);
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.7));
    pointer-events: none;
}

.wp-register-heading > p {
    margin: 0 0 7px;
    color: #e1d0a8;
    font-family: "EB Garamond", Georgia, serif;
    font-size: 17px;
    letter-spacing: 0.25px;
}

.wp-register-title-row {
    display: grid;
    grid-template-columns: minmax(46px, 92px) auto minmax(46px, 92px);
    align-items: center;
    gap: 16px;
}

.wp-register-title-row span {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--register-gold));
}

.wp-register-title-row span:last-child {
    background: linear-gradient(90deg, var(--register-gold), transparent);
}

.wp-register-title-row span::after {
    content: "❧";
    position: absolute;
    top: 50%;
    right: -4px;
    color: var(--register-gold);
    font-size: 18px;
    line-height: 1;
    transform: translateY(-52%);
}

.wp-register-title-row span:last-child::after {
    right: auto;
    left: -4px;
    transform: translateY(-52%) scaleX(-1);
}

.wp-register-title-row h1 {
    margin: 0;
    color: #dca64a;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(27px, 3.2vw, 38px);
    font-weight: 400;
    letter-spacing: clamp(5px, 0.7vw, 9px);
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 2px 9px rgba(0, 0, 0, 0.9);
}

.wp-register-heading > i {
    position: relative;
    margin-top: 8px;
    color: #a2762f;
    font-size: 12px;
    font-style: normal;
}

.wp-register-heading > i::before,
.wp-register-heading > i::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 116px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(169, 124, 47, 0.65));
}

.wp-register-heading > i::before { right: 17px; }
.wp-register-heading > i::after { left: 17px; transform: scaleX(-1); }

.wp-register-form,
.wp-register-grid,
.wp-register-actions,
.wp-register-alert {
    position: relative;
    z-index: 2;
}

.wp-register-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(340px, 0.98fr);
    align-items: start;
    gap: clamp(28px, 4vw, 46px);
}

.wp-register-details,
.wp-register-appearance {
    min-width: 0;
}

.wp-register-intro {
    margin: 0 0 17px;
    color: #e0d0ac;
    font-size: 15.5px;
    line-height: 1.45;
}

.wp-register-intro strong {
    color: #e1ac4e;
    font-weight: 600;
}

.wp-register-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wp-register-field {
    display: block;
    min-width: 0;
    margin-bottom: 12px;
}

.wp-register-field > span:first-child,
.wp-register-gender legend,
.wp-register-birthdate legend,
.wp-register-appearance h2 {
    display: block;
    margin: 0 0 7px;
    padding: 0;
    color: #d7ac63;
    font-family: "Cinzel", Georgia, serif;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

.wp-register-control {
    position: relative;
    display: block;
}

.wp-register-control svg {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #bc8730;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
    transform: translateY(-50%);
    pointer-events: none;
}

.wp-register-control input,
.wp-register-select input,
.wp-register-select select,
.wp-register-birthdate select {
    width: 100%;
    min-width: 0;
    height: 45px;
    border: 1px solid rgba(202, 148, 58, 0.36);
    border-radius: 5px;
    outline: 0;
    color: #deceb0;
    background: rgba(8, 8, 14, 0.55);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 222, 145, 0.04);
    font-family: "EB Garamond", Georgia, serif;
    font-size: 15px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.wp-register-control input,
.wp-register-select input {
    padding: 0 40px 0 13px;
}

.wp-register-control input::placeholder,
.wp-register-select input::placeholder {
    color: rgba(191, 169, 128, 0.86);
    opacity: 1;
}

.wp-register-control input[readonly] {
    color: #bca879;
    cursor: default;
}

.wp-register-control input:focus,
.wp-register-select input:focus,
.wp-register-select select:focus,
.wp-register-birthdate select:focus {
    border-color: #c99438;
    background-color: rgba(12, 11, 18, 0.92);
    box-shadow: 0 0 0 2px rgba(190, 137, 48, 0.1), inset 0 1px 8px rgba(0, 0, 0, 0.35);
}

.wp-register-gender {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 21px;
    min-width: 0;
    margin: 1px 0 12px;
    padding: 0;
    border: 0;
}

.wp-register-gender legend {
    flex-basis: 100%;
}

.wp-register-gender label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dfceb0;
    font-size: 15px;
    cursor: pointer;
}

.wp-register-gender input,
.wp-register-consent input {
    appearance: none;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid #9e712f;
    background: rgba(8, 8, 14, 0.55);
    cursor: pointer;
}

.wp-register-gender input {
    border-radius: 50%;
}

.wp-register-gender input:checked {
    box-shadow: inset 0 0 0 4px #0c0b12;
    background: #c18d35;
}

.wp-register-consents {
    display: grid;
    gap: 8px;
}

.wp-register-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 5px;
    color: #d8c7a5;
    background: rgba(8, 8, 14, 0.55);
    font-size: 13.5px;
    line-height: 1.35;
    cursor: pointer;
}

.wp-register-consent input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border-radius: 3px;
}

.wp-register-consent input:checked {
    background: #b98531;
    box-shadow: inset 0 0 0 4px #0c0b12;
}

.wp-register-appearance {
    padding: 17px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 5px;
    background:
        linear-gradient(
            118deg,
            rgba(9, 9, 14, 0.82) 0%,
            rgba(12, 11, 18, 0.76) 52%,
            rgba(18, 13, 24, 0.8) 100%
        );
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 225, 160, 0.035);
}

.wp-register-appearance h2 {
    margin-bottom: 9px;
}

.wp-register-avatar {
    display: grid;
    place-items: center;
    height: 221px;
    margin-bottom: 13px;
    overflow: hidden;
    border: 1px solid rgba(202, 148, 58, 0.24);
    border-radius: 4px;
    background: rgba(8, 8, 14, 0.55);
}

.wp-register-avatar img {
    display: block;
    width: auto;
    height: 178px;
    max-width: 92%;
    image-rendering: pixelated;
    object-fit: contain;
    filter: drop-shadow(0 12px 8px rgba(0, 0, 0, 0.55));
}

.wp-register-birthdate {
    min-width: 0;
    margin: 0 0 9px;
    padding: 0;
    border: 0;
}

.wp-register-birthdate > div {
    display: grid;
    grid-template-columns: 0.85fr 1.2fr 0.95fr;
    gap: 10px;
}

.wp-register-select {
    display: block;
    margin-top: 9px;
}

.wp-register-select select,
.wp-register-birthdate select {
    appearance: none;
    padding: 0 34px 0 13px;
    background-image:
        linear-gradient(45deg, transparent 50%, #c38e32 50%),
        linear-gradient(135deg, #c38e32 50%, transparent 50%);
    background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.wp-register-select option,
.wp-register-birthdate option {
    color: #ded0b2;
    background: #0b0a12;
}

.wp-register-select select[data-color] {
    border-left: 4px solid var(--selected-color, #a0712d);
    padding-left: 10px;
}

.wp-register-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 11px;
}

.wp-register-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(443px, 100%);
    height: 70px;
    padding: 0 80px;
    overflow: visible;
    border: 0;
    outline: 0;
    color: #e7c272;
    background: transparent;
    font-family: "Cinzel", Georgia, serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 4px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
    cursor: pointer;
    transition: color 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

.wp-register-submit img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}


.wp-register-submit span {
    position: absolute;
    z-index: 2;
    top: 29.01%;
    right: 0;
    bottom: 12.96%;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f1d28a;
    opacity: 1;
    visibility: visible;
    -webkit-text-fill-color: #f1d28a;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.92);

    transform: translateY(0.08em);
}

.wp-register-submit:hover {
    color: #ffe08f;
    filter: drop-shadow(0 0 8px rgba(204, 149, 48, 0.28));
    transform: translateY(-1px);
}

.wp-register-submit:focus-visible {
    border-radius: 6px;
    box-shadow: 0 0 0 2px #d7a347;
}

.wp-register-submit:disabled {
    opacity: 0.62;
    cursor: wait;
    transform: none;
}

.wp-register-actions p {
    margin: -1px 0 0;
    color: #d8c6a1;
    font-size: 14px;
}

.wp-register-actions a {
    color: #dba94e;
    font-weight: 600;
    text-decoration: none;
}

.wp-register-actions a:hover {
    color: #f0c977;
    text-decoration: underline;
}

.wp-register-alert {
    width: min(700px, 100%);
    margin: -3px auto 15px;
    padding: 9px 13px;
    border: 1px solid rgba(191, 73, 61, 0.72);
    border-radius: 4px;
    color: #f0c5b7;
    background: rgba(70, 16, 19, 0.62);
    font-size: 14px;
    text-align: center;
}

.wp-field-error {
    display: block;
    margin: 4px 2px 0;
    color: #f0a184;
    font-size: 12.5px;
    line-height: 1.2;
}

.wp-register-new-page .hidden {
    display: none !important;
}

.wp-register-new-page .is-invalid,
.wp-register-new-page input.is-invalid,
.wp-register-new-page select.is-invalid {
    border-color: #b95145 !important;
    box-shadow: 0 0 0 2px rgba(185, 81, 69, 0.1) !important;
}

.wp-register-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.wp-register-captcha {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 1040px) {
    .wp-register-main {
        padding-top: 88px;
    }

    .wp-register-card {
        max-width: 820px;
        padding-right: clamp(30px, 6vw, 58px);
        padding-left: clamp(30px, 6vw, 58px);
    }

    .wp-register-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .wp-register-appearance {
        display: grid;
        grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
        grid-template-rows: auto auto auto auto auto;
        gap: 0 20px;
    }

    .wp-register-appearance h2 {
        grid-column: 1 / -1;
    }

    .wp-register-avatar {
        grid-column: 1;
        grid-row: 2 / 7;
        height: 100%;
        min-height: 285px;
        margin: 0;
    }

    .wp-register-birthdate,
    .wp-register-select {
        grid-column: 2;
    }

    #otpField {
        grid-column: 2;
    }
}

@media (max-width: 720px) {
    .wp-register-main {
        padding: 76px 12px 24px;
    }

    .wp-register-card {
        padding: 44px 26px 23px;
    }

    .wp-register-heading {
        min-height: 104px;
    }

    .wp-register-title-row {
        grid-template-columns: minmax(24px, 60px) auto minmax(24px, 60px);
        gap: 10px;
    }

    .wp-register-title-row h1 {
        font-size: clamp(22px, 6vw, 31px);
        letter-spacing: clamp(3px, 1.2vw, 6px);
    }

    .wp-register-appearance {
        display: block;
    }

    .wp-register-avatar {
        height: 230px;
        min-height: 0;
        margin-bottom: 13px;
    }
}

@media (max-width: 540px) {
    .wp-register-main {
        padding-right: 8px;
        padding-left: 8px;
    }

    .wp-register-card {
        padding-right: 20px;
        padding-left: 20px;
    }

    .wp-register-pair {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .wp-register-heading > p {
        font-size: 15px;
    }

    .wp-register-title-row span {
        display: none;
    }

    .wp-register-title-row {
        display: block;
    }

    .wp-register-title-row h1 {
        font-size: clamp(21px, 7vw, 29px);
        letter-spacing: clamp(2px, 1.3vw, 5px);
    }

    .wp-register-birthdate > div {
        gap: 6px;
    }

    .wp-register-birthdate select {
        padding-right: 26px;
        padding-left: 9px;
        background-position: calc(100% - 14px) 18px, calc(100% - 9px) 18px;
        font-size: 13px;
    }

    .wp-register-submit {
        height: 64px;
        padding: 0 60px;
        font-size: 16px;
        letter-spacing: 3px;
    }

    .wp-register-actions p {
        font-size: 13px;
    }
}

@media (max-width: 370px) {
    .wp-register-card {
        padding-right: 16px;
        padding-left: 16px;
    }

    .wp-register-intro {
        font-size: 14.5px;
    }

    .wp-register-birthdate > div {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-register-submit {
        height: 59px;
        padding: 0 44px;
        font-size: 14px;
        letter-spacing: 2.5px;
    }

    .wp-register-actions p {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wp-register-new-page *,
    .wp-register-new-page *::before,
    .wp-register-new-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}



.wp-register-card {

    border-radius: 7px;
    --wp-frame-w: clamp(24px, 4.6vw, 52px);
    --wp-emblem-cy: calc(var(--wp-frame-w) * -3 / 52);
    --wp-emblem-r0: calc(var(--wp-frame-w) * 46 / 52);
    --wp-emblem-r1: calc(var(--wp-frame-w) * 52 / 52);
}

.wp-register-card::after {
    content: '';
    position: absolute;
    z-index: 5;
    inset: 0;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-width: var(--wp-frame-w);
    border-image-source: url('../../questionnaire-new/images/questionnaire-frame-rect.webp');
    border-image-slice: 52;
    border-image-width: var(--wp-frame-w);
    border-image-repeat: stretch;
    -webkit-mask-image: radial-gradient(circle var(--wp-emblem-r1) at 50% var(--wp-emblem-cy), transparent 0 var(--wp-emblem-r0), #000 var(--wp-emblem-r1));
    mask-image: radial-gradient(circle var(--wp-emblem-r1) at 50% var(--wp-emblem-cy), transparent 0 var(--wp-emblem-r0), #000 var(--wp-emblem-r1));
    pointer-events: none;
}

.wp-register-edge,
.wp-register-corner {
    display: none !important;
}


html.wp-register-new-root {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.wp-register-new-page {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    overflow-x: clip;
}

.wp-register-social {
    position: relative;
    z-index: 2;
    width: min(700px, 100%);
    margin: 0 auto 18px;
}

.wp-register-social__bottoni {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 12px;
}

.wp-register-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 45px;
    padding: 8px 16px;
    border: 1px solid rgba(202, 148, 58, 0.36);
    border-radius: 5px;
    color: #e7d9bb;
    background: rgba(8, 8, 14, 0.55);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 222, 145, 0.04);
    font-size: 15.5px;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.wp-register-social__btn svg {
    flex: none;
    width: 20px;
    height: 20px;
}

.wp-register-social__btn:hover,
.wp-register-social__btn:focus-visible {
    border-color: #c99438;
    outline: 0;
    background-color: rgba(12, 11, 18, 0.92);
    box-shadow: 0 0 0 2px rgba(190, 137, 48, 0.1), inset 0 1px 8px rgba(0, 0, 0, 0.35);
}

.wp-register-social__oppure {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 0;
    color: #d8c6a1;
    font-size: 14px;
    font-style: italic;
}

.wp-register-social__oppure::before,
.wp-register-social__oppure::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--register-gold-muted));
}

.wp-register-social__oppure::after {
    background: linear-gradient(90deg, var(--register-gold-muted), transparent);
}

.wp-register-social--in-corso {
    padding: 13px 16px;
    border: 1px solid rgba(202, 148, 58, 0.36);
    border-radius: 5px;
    color: #e0d0ac;
    background: rgba(8, 8, 14, 0.55);
    font-size: 15px;
    line-height: 1.45;
}

.wp-register-social--in-corso p {
    margin: 0 0 6px;
}

.wp-register-social__chi {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.wp-register-social__chi svg {
    flex: none;
}

.wp-register-social__chi span {
    color: #d7ac63;
    font-family: "Cinzel", Georgia, serif;
    font-size: 11.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.wp-register-social__chi strong {
    min-width: 0;
    color: #e1ac4e;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.wp-register-social--in-corso a {
    color: #dba94e;
    font-weight: 600;
    text-decoration: none;
}

.wp-register-social--in-corso a:hover {
    color: #f0c977;
    text-decoration: underline;
}
