@font-face {
    font-family: 'Hanken Grotesk';
    src: url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;600&display=swap');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanken Grotesk';
    src: url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;600&display=swap');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body.register-page {
    font-family: 'Hanken Grotesk', 'Poppins', Arial, sans-serif;
    font-weight: 400;
    color: #171A24;
    min-height: 100vh;
    background-image: url('/general/panel/assets/images/bg_form_desktop.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    position: relative;
}

body.register-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/general/panel/assets/images/bg_form_desktop.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.form-wrapper {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container {
    width: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 24px;
    padding: 40px 40px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    isolation: isolate;
    overflow: hidden; /* garante que o blur respeite o radius */
}

.form-container::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

.form-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}


.form-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 60px;
    padding: 10px 20px;
    box-shadow: 
        0 8px 32px rgba(200, 150, 200, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 600px; /* AQUI: limita a largura */
    width: auto; /* MUDANÇA: de 100% para auto */
    text-align: center;
}
    
.form-box h2 {
    font-size: 14px;
    font-weight: 700;
    color: #171a24;
    margin: 0;
    white-space: nowrap; /* evita quebra de linha */
}

.form-header .logo {
    width: 300px;
    height: auto;
    margin-bottom: 16px;
    object-fit: contain;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #171A24;
    margin-bottom: 8px;
}

.form-header .subtitle {
    font-size: 20px;
    color: #171a24;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, #c2daf7 ,#2f46e4, #ff57c0) 1;
}


/* .form-header .subtitle::before,
.form-header .subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: #fff; */
/* } */

.form-header .subtitle::before {
    right: calc(100% + 12px);
}

.form-header .subtitle::after {
    left: calc(100% + 12px);
}

.indication-card {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #fbfcff;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.indication-card.show {
    display: flex;
}

.indication-card .indication-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.indication-card .indication-content img {
    width: 20px;
    height: 20px;
}

.indication-card .indication-text {
    font-size: 14px;
    color: #171A24;
}

.indication-card .indication-text strong {
    font-weight: 600;
}

.indication-card .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.indication-card .close-btn:hover {
    opacity: 1;
}

.indication-card .close-btn img {
    width: 16px;
    height: 16px;
}

.form-section {
    margin-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #171A24;
    margin-bottom: 20px;
}

@media (min-width: 769px) {
    .form-row .form-group {
        flex: 1;
    }
}

.plan-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.plan-card:hover {
    background: rgba(255, 255, 255, 0.8);
}

.plan-card.selected {
    border-color: #2F46E4;
    background: rgba(255, 255, 255, 0.9);
}

.plan-card input[type="radio"] {
    display: none;
}

.plan-card .plan-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.plan-card .plan-details {
    flex: 1;
}

.plan-card .plan-name {
    font-size: 16px;
    font-weight: 600;
    color: #171A24;
    margin-bottom: 4px;
}

.plan-card .plan-name span {
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
    margin-left: 4px;
}

.plan-card .plan-description {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 6px;
}

.plan-card .plan-price {
    font-size: 12px;
    font-weight: 600;
    color: #171A24;
}

.plan-card .radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.plan-card.selected .radio-circle {
    border-color: #2F46E4;
}

.plan-card.selected .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #2F46E4;
    border-radius: 50%;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #171A24;
    margin-bottom: 8px;
}

.form-group label .optional {
    font-weight: 400;
    color: #9CA3AF;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-family: 'Hanken Grotesk', 'Poppins', Arial, sans-serif;
    font-size: 14px;
    color: #171A24;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2F46E4;
    background: rgba(255, 255, 255, 0.85);
}

.form-group input::placeholder {
    color: #9CA3AF;
}

.form-group input.error {
    border-color: #EF4444;
}

.form-group input.success {
    border-color: #10B981;
}

.form-group select {
    cursor: pointer;
}

.form-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-group .error-message {
    font-size: 12px;
    color: #EF4444;
    margin-top: 6px;
    display: none;
}

.form-group .error-message.show {
    display: block;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 48px;
}

.password-field .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.password-field .toggle-password:hover {
    opacity: 1;
}

.password-field .toggle-password img {
    width: 20px;
    height: 20px;
}

.password-rules {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 6px 7px rgba(0, 0, 0, 0.05);
}

.password-rules h4 {
    font-size: 12px;
    font-weight: 600;
    color: #171A24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.password-rules ul {
    list-style: none;
}

.password-rules li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 8px;
}

.password-rules li:last-child {
    margin-bottom: 0;
}

.password-rules li img {
    width: 16px;
    height: 16px;
}

.password-rules li.valid {
    color: #008D3E;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 1);
    margin: 32px 0;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #2F46E4;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    color: #171A24;
    cursor: pointer;
}

.checkbox-group label a {
    color: #2F46E4;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    flex: 1;
    height: 52px;
    border-radius: 26px;
    font-family: 'Hanken Grotesk', 'Poppins', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #2F46E4;
    color: #2F46E4;
}

.btn-secondary:hover {
    background: rgba(47, 70, 228, 0.05);
}

.btn-primary {
    background: #2F46E4;
    color: #FFFFFF;
    box-shadow: inset 0 0 12px rgba(0, 123, 255, 0.5);
}

.btn-primary:hover {
    background: #FF57C0;
    box-shadow: none;
}

.btn-primary:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    box-shadow: none;
}

.login-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    font-size: 14px;
    color: #6B7280;
}

.login-link a {
    color: #2F46E4;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.page-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #6B7280;
}

.password-match-error {
    font-size: 13px;
    color: #EF4444;
    margin-top: 8px;
    display: none;
}

.password-match-error.show {
    display: block;
}

.referral-link {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
}

.referral-link label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-link h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2F46E4;
    margin: 0;
    word-break: break-all;
}

@media (max-width: 768px) {
    body.register-page {
        padding: 25px 20px;
        background-image: none;
    }

    body.register-page::before {
        background-attachment: scroll;
    }

    .form-wrapper {
        width: 100%;
        max-width: 500px;
    }

    .form-container {
        padding: 32px 20px;
        border-radius: 24px;
        flex-shrink: 0;
    }

    .form-container::before {
        border-radius: 20px;
    }

    .form-header h1 {
        font-size: 24px;
    }

    .form-header .subtitle::before,
    .form-header .subtitle::after {
        width: 40px;
    }

    .section-title {
        font-size: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-buttons {
        flex-direction: row;
    }

    .btn {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .form-buttons {
        gap: 8px;
    }

    .btn {
        font-size: 14px;
        height: 48px;
    }
}

.hidden {
    display: none !important;
}

.flag {
    width: 16px;
    height: 11px;
    background: url(/newAssets/img/flags.png) no-repeat;
    display: inline-block;
    vertical-align: middle;
}

.flag.flag-us {
    background-position: -160px -154px;
}

.flag.flag-br {
    background-position: -192px -11px;
}


.datepicker {
    z-index: 10050 !important;
    background: #ffffff !important;
}

.datepicker-dropdown {
    z-index: 10050 !important;
    position: absolute !important;
    background: #ffffff !important;
}

.datepicker.datepicker-dropdown {
    z-index: 10050 !important;
    position: absolute !important;
    background: #ffffff !important;
}

#birth_date_group {
    position: relative;
}

.recaptcha-fixed {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    width: 220px; /* ajuste se quiser */
}

/* em telas pequenas, não deixar o botão ficar gigante ou cobrir tudo */
@media (max-width: 480px) {
    .recaptcha-fixed {
        right: 16px;
        bottom: 16px;
        width: 180px;
    }
}