* {
    box-sizing: border-box;
    font-family: 'Ubuntu', Arial, sans-serif;
}

html {
    overflow-x: hidden;
    scrollbar-color: #0AAD96 rgba(214, 255, 246, 0.32);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 244, 251, .32);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f1b7e9, #c76bca 52%, #a54d94);
    border: 2px solid rgba(255, 244, 251, .55);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffd5f6, #d981dc 52%, #b856b7);
}

body.register-bg {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to top, rgb(6, 143, 128) 20%, rgb(10, 173, 150) 50%, rgb(47, 216, 183) 80%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body.register-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('../../img/index/fundo-HQKEHtfH.png') no-repeat;
    background-position: 110% -20%;
    background-size: 75%;
    opacity: .25;
    pointer-events: none;
}

.register-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.register-wrapper>* {
    width: 100%;
    max-width: 420px;
}

.register-wrapper .logo img {
    max-width: 180px;
    margin: 0 auto 20px;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.register-wrapper .logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

.register-title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
}

.register-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 12px;
    background: rgba(106, 31, 101, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
    backdrop-filter: blur(3px);
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 116px;
    opacity: .58;
    transition: opacity .2s ease, transform .2s ease;
}

.progress-item.active,
.progress-item.completed {
    opacity: 1;
}

.progress-item.active {
    transform: translateY(-1px);
}

.progress-step {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    border: 2px solid rgba(255, 255, 255, 0.55);
}

.progress-item.active .progress-step {
    background: linear-gradient(180deg, #068f80, #2fd8b7);
    border-color: #ffffff;
    line-height: 1;
    padding-bottom: 2px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .18), 0 4px 10px rgb(23 76 84 / 25%);
}

.progress-item.completed .progress-step {
    background: #00a85a;
    border-color: #b9f6d2;
    box-shadow: 0 0 0 3px rgba(0, 168, 90, .2);
}

.progress-label {
    display: flex;
    flex-direction: column;
    color: #ffffff;
    line-height: 1.15;
    text-shadow: 0 1px 2px rgba(75, 23, 72, .65);
}

.progress-label strong {
    font-size: 13px;
}

.progress-label small {
    margin-top: 3px;
    font-size: 10px;
    opacity: .82;
}

.progress-line {
    position: relative;
    flex: 1 1 48px;
    max-width: 68px;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
}

.progress-line i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #ffffff;
    transition: width .3s ease;
}

.register-progress[data-current-step="2"] .progress-line i {
    width: 100%;
}

@media (max-width: 500px) {
    .register-progress {
        gap: 5px;
        padding: 9px;
    }

    .progress-item {
        flex: 1 1 0;
        min-width: 0;
        gap: 6px;
    }

    .progress-step {
        width: 30px;
        height: 30px;
    }

    .progress-label strong {
        font-size: 11px;
    }

    .progress-label small {
        display: none;
    }

    .progress-line {
        flex: 0 1 30px;
        max-width: 30px;
    }
}

.error-msg {
    background: rgba(231, 76, 60, .25);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    border: 1px solid #e74c3c;
}

.success-msg {
    background: rgba(95, 196, 95, .25);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    border: 1px solid #a54d94;
}

.auth-link {
    display: inline-block;
    margin-top: 16px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-button-link {
    display: block;
    text-align: center;
    text-decoration: none;
}

.input-group {
    height: 50px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-block {
    margin-bottom: 18px;
}

.field-block .input-group:last-child {
    margin-bottom: 0;
}

.field-title {
    display: block;
    margin: 0 3px 7px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(75, 23, 72, .65);
}

.field-description {
    margin: -2px 3px 9px;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(75, 23, 72, .65);
}

.field-description.after-input {
    margin-top: -3px;
    margin-bottom: 0;
}

.field-description b {
    font-weight: 900;
}

.password-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.password-fields .input-group {
    min-width: 0;
    margin-bottom: 0;
}

@media (max-width: 390px) {
    .password-fields {
        grid-template-columns: 1fr;
    }
}

.input-group:focus-within {
    border-color: rgb(6, 143, 128);
    box-shadow: 0 0 0 2px rgb(6 143 128 / 39%);
}

.input-group input,
.input-group select {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    font-size: 14px;
    color: #444;
    background: transparent;
}

.birth-group {
    gap: 8px;
}

.btn {
    width: 100%;
    padding: 14px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    color: white;
    border: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-crie {
    background: linear-gradient(180deg, #d981dc, #a54d94);
    border: 2px solid #963f87;
    box-shadow: 0 3px 0 #71345f;
}

.btn-secondary {
    background: linear-gradient(180deg, #913f82, #71345f);
    border: 2px solid #71345f;
    box-shadow: 0 3px 0 #4f183f;
}

.step-actions {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
    gap: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.captcha-container {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 70px;
    margin: 4px 0 14px;
}

.cf-turnstile {
    width: 300px;
    max-width: 100%;
    min-height: 65px;
    flex: 0 0 auto;
    overflow: visible;
}

.cf-turnstile iframe {
    display: block !important;
    width: 300px !important;
    max-width: 100% !important;
    height: 65px !important;
    border: 0;
}

.gender-select {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.gender-card {
    flex: 1;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #e9ecef;
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gender-card:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.gender-card.active {
    border-color: rgb(81 81 81);
}

.gender-card img {
    width: 44px;
    margin-bottom: 3px;
}

.gender-card span {
    display: block;
    font-weight: 800;
    font-size: 13px;
    color: #333;
}

.terms-group {
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    min-height: 24px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    user-select: none;
    line-height: 1.4;
}

.terms-copy {
    display: block;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.checkbox-container:hover input~.checkmark {
    background-color: #ddd;
}

.checkbox-container input:checked~.checkmark {
    background-color: #040404ed;
    border-color: #00000052;
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 0px;
    width: 5px;
    height: 11px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark::after {
    display: block;
}

.checkbox-container a {
    color: #474747;
    text-decoration: none;
    font-weight: 800;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 25px;
    color: #ffffff;
    font-size: 12px;
    background: #0000003b;
    flex-shrink: 0;
    margin-top: auto;
}

.petal {
    position: fixed;
    top: -24px;
    width: 15px;
    height: 15px;
    background-color: #f4c7ef;
    border-radius: 50%;
    animation: fall 5s infinite ease-in;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    contain: layout paint;
}

.login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.btn-habbo {
    cursor: pointer;
    color: #fff;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
    border-width: 9px;
    border-style: solid;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.1s;
    background: transparent;
    text-decoration: none;
    transition: transform 0.3s
}

.btn-habbo:hover {
    transform: scale(1.1);
}

.btn-reg-txt {
    padding: 35px 25px;
    font-size: 18pt;
    flex-direction: column;
    line-height: 1;
}

.btn-green {
    border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADvSURBVEhLY2RABWZQmlJwCkozwCxAMXjn5+KTUCZJwJ231xzKhIFTKBaQazA6QLIIbAHc9cgWdJ5+y7D/8TcoDz9wlOViKDcVhvJQfQK3ANlwj/VPoCzSwI5AGSgLYQkTmIcEOs+8g7JIB9j0Yliw/9FXBob//8nCYL1oAMMCBkZgqFGC0QCmBVQGmBZg8TpJGA2MBhEmRgOjQYSJ0QCGBY5y3Ni9TgQG60UDGBaUmwhBWaQDbHrhFiAXsaBS0VGGE3sQYMEgtdhKUhAA+g17fUAJwGkBDFCxysReJ1MRnKJ5PoD5AAao5RNos4WBAQBQLsgyM3Jw7gAAAA5lWElmTU0AKgAAAAgAAAAAAAAA0lOTAAAAAElFTkSuQmCC) 9 9 9 9 fill;
}

.btn-red {
    border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADiSURBVEhLY2RABWZQmlJwCkozwCxAMfhzcftJKJMkwNtbaQ5lwsApFAvINRgdIFkEtgDuemQLLp+4y/Di4VsoDz+QkBdm0LVQhvJQfQK3ANnw3atOQ1mkAdcwUygLYQkTmIcELp+4B2WRDrDpxbDgxcM3DAz//5OFwXrRAIYFkFCjBKMCLBZQF2CxAOhdijAqGA0iLBgVjAYRFowKMCyQkBcBkti8ThhD9KICDAt0LZSgLNIBNr0gq+lTXIMADSocVAtggFyLkA2GAZAFIIBhCZXAKZrnA5gPYIBaPoE2WxgYAKkgiSeAMFjTAAAADmVYSWZNTQAqAAAACAAAAAAAAADSU5MAAAAASUVORK5CYII=) 9 9 9 9 fill;
}

.login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-actions .btn-habbo {
    flex: 1;
}

.login-actions .btn-green {
    justify-self: stretch;
    min-height: 34px;
    padding: 8px 20px;
    font-size: 12px;
}

.login-actions .btn-red {
    justify-self: stretch;
    min-height: 34px;
    padding: 8px 20px;
    font-size: 12px;
}


@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(calc(100dvh - 15px)) rotate(360deg);
        opacity: 0;
    }
}

.petal:nth-child(1) {
    left: 10%;
    animation-duration: 6s;
    animation-delay: 0s;
}

.petal:nth-child(2) {
    left: 30%;
    animation-duration: 5s;
    animation-delay: 1s;
}

.petal:nth-child(3) {
    left: 50%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.petal:nth-child(4) {
    left: 70%;
    animation-duration: 4s;
    animation-delay: 0.5s;
}

.petal:nth-child(5) {
    left: 90%;
    animation-duration: 6s;
    animation-delay: 1.5s;
}

@media (max-width: 480px) {
    body.register-bg {
        overflow-y: auto;
    }

    .register-wrapper {
        padding: 15px;
    }

    .register-wrapper>* {
        max-width: 100%;
    }

    .register-title {
        font-size: 18px;
    }

    .input-group {
        height: auto;
        padding: 12px;
    }

    .input-group input,
    .input-group select {
        font-size: 15px;
    }

    .birth-group,
    .gender-select {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        font-size: 14px;
        padding: 15px;
    }

    .gender-card {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }

    .gender-card img {
        width: 36px;
        margin: 0;
    }

    .gender-card span {
        font-size: 14px;
    }

    body.register-bg::before {
        background-size: 120%;
        background-position: center top;
        opacity: 0.15;
    }

    footer {
        font-size: 11px;
        padding: 20px;
    }
}
