@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: Montserrat, sans-serif;
    height: 100%;
    display: flex;
    align-items: center;
    overflow-x: hidden;
}

.main-container {
    width: 100%;
    height: 100%;
    align-content: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%), linear-gradient(84.38deg, #000000 8.96%, rgba(173, 195, 66, 0.8) 54.48%, #ADC342 100%), #000000;
}

.main-container-agreements {
    min-height: 100vh;
    width: 100%;
    align-content: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%), linear-gradient(84.38deg, #000000 8.96%, rgba(173, 195, 66, 0.8) 54.48%, #ADC342 100%), #000000;
}

/* Styles for desktop monitors and larger */
@media (min-width: 1800px) {
    body {
        height: 100vh;
    }
}

button,
input[type="text"],
input[type="email"],
input[type="password"],
select {
    all: unset;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

button {
    cursor: pointer;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: auto;
    margin: 15px;
}

.logo img {
    width: 100%;
    height: auto;
}

.register-container {
    text-align: center;
    width: 600px;
    height: auto;
    background-color: rgba(250, 249, 246, 0.16);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.form-content-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-container {
    display: flex;
    gap: 45px;
    flex-direction: column;
}

.inner-container {
    padding: 45px 60px;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.mandatory-fields {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.register-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    line-height: 39px;
    color: #FFFFFF;
    margin: unset;
}

.register-container input[type="text"],
.register-container input[type="email"],
.register-container input[type="password"],
.register-container select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(250, 249, 246, 0.3);
    font-size: 14px;
    text-align: left;
    color: rgb(255, 255, 255);
}

.register-container input[type="text"]::placeholder,
.register-container input[type="email"]::placeholder,
.register-container input[type="password"]::placeholder,
.register-container select::placeholder {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    color: rgba(250, 249, 246, 0.3);
}

.register-container select {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    color: rgba(250, 249, 246, 0.3);
}

.register-container input[type="text"]:focus,
.register-container input[type="email"]:focus,
.register-container input[type="password"]:focus,
.register-container select:focus {
    outline: none;
    color: rgb(255, 255, 255);
    border: 1px solid rgba(173, 195, 66, 1);
    box-shadow: 0 0 20px rgba(173, 195, 66, 0.1);
    background: rgba(173, 195, 66, 0.05);
}

.mandatory-fields h4 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    margin: unset;
    text-align: left;
    margin-bottom: 10px;
}

.names {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.first-name-container,
.last-name-container {
    width: 50%;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(250, 249, 246, 0.3);
    border-radius: 6px;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(250, 249, 246, 0.3);
    cursor: pointer;
    background-color: transparent;
    border-radius: 6px;
}

.selected-country-container {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.country-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.custom-select.open .country-icon {
    transform: rotate(180deg);
}

.leverage-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.custom-select.open .leverage-icon {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #000000;
    border: 1px solid rgba(250, 249, 246, 0.3);
    border-radius: 6px;
    margin-top: 5px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    display: none;
    z-index: 1000;
    text-align: start;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-select.open .custom-options {
    display: block;
}

.custom-option {
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(250, 249, 246, 0.3);
    cursor: pointer;
    transition: color 0.3s ease;
}

.custom-option:hover {
    color: #ffffff;
}

.custom-option.selected {
    color: #ffffff;
}

.custom-option.disabled {
    color: rgba(250, 249, 246, 0.7);
    cursor: not-allowed;
}

.custom-select-trigger span.disabled {
    color: rgba(250, 249, 246, 0.7);
}

.custom-select-trigger span.selected {
    color: #ffffff;
}

.country-flag {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
    border-radius: 40px;
}

.country-search-container {
    padding: 10px;
    border-bottom: 1px solid rgba(250, 249, 246, 0.3);
}

.country-search-input {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(250, 249, 246, 0.3);
    background-color: transparent;
    color: #FFFFFF;
    font-size: 14px;
}

.country-search-input::placeholder {
    color: rgba(250, 249, 246, 0.3);
}

.selected-flag {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
    border-radius: 40px;
    display: none;
}

.selected-country-name {
    color: #FFFFFF;
}

.phone-number-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-code-select {
    flex-shrink: 0;
    width: 130px;
}

.phone-code-select .custom-select-trigger {
    padding: 8px;
    font-size: 14px;
}

.phone-code-select .custom-option.selected {
    color: #ffffff;
}

.phone-code-select-trigger span.selected {
    color: #ffffff;
}

.leverage-select-wrapper {
    position: relative;
    user-select: none;
}

.leverage-select {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(250, 249, 246, 0.3);
    border-radius: 6px;
}

.leverage-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(250, 249, 246, 0.3);
    cursor: pointer;
    background-color: transparent;
    border-radius: 6px;
}

.leverage-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #000000;
    border: 1px solid rgba(250, 249, 246, 0.3);
    border-radius: 6px;
    margin-top: 5px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    display: none;
    z-index: 1000;
    text-align: start;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.leverage-select.open .leverage-options {
    display: block;
}

.leverage-option {
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(250, 249, 246, 0.3);
    cursor: pointer;
    transition: color 0.3s ease;
}

.leverage-option:hover {
    color: #ffffff;
}

.leverage-option.selected {
    color: #ffffff;
}

.leverage-option.disabled {
    color: rgba(250, 249, 246, 0.7);
    cursor: not-allowed;
}

.leverage-select-trigger span.disabled {
    color: rgba(250, 249, 246, 0.7);
}

.leverage-select-trigger span.selected {
    color: #ffffff;
}

.password-container {
    position: relative;
}

.password-container input[type="password"],
.password-container input[type="text"] {
    flex-grow: 1;
    font-size: 16px;
    line-height: 13.5px;
    border-radius: 7.5px;
}

.password-container input[type="password"]:focus {
    box-shadow: 0 0 7.5px rgba(0, 0, 0, 0.5);
}

.password-icon {
    position: absolute;
    right: 10px;
    cursor: pointer;
    width: 24px;
    height: 40px;
}

.password-requirements {
    gap: 30px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.password-requirements-right-container {
    text-align: left;
    font-size: 12px;
    color: #ff6666;
    gap: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.password-requirements-left-container {
    text-align: left;
    font-size: 12px;
    color: #ff6666;
    gap: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.requirement {
    margin: unset;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #FFFFFF;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.form-footer {
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
}

button.register-btn {
    display: inline-block;
    text-align: center;
    width: 150px;
    height: 38px;
    background: #000000;
    color: #FFFFFF;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    line-height: 38px;
    font-weight: 500;
    font-size: 18px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

button.register-btn:hover {
    background: #0000009c;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.10);
}

.login-link {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;
}

.login-link a.log-in {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    color: #161618;
    text-decoration: none;
}

.login-link a.log-in:hover {
    color: #161618c2;
}


/* Address Fields Styling */
.address-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.postal-code-and-city-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.postal-code-container,
.city-container {
    width: 50%;
}

.street-address-container {
    width: 100%;
}

@media (max-width: 650px) {

    .logo {
        position: absolute;
        left: auto;
        right: auto;
    }

    .register-container {
        width: 92%;
        margin-top: 90px;
    }

    .inner-container {
        padding: 20px;
    }

    .postal-code-container,
    .city-container,
    .street-address-container {
        width: 100%;
    }

    .terms-container {
        width: 100% !important;
    }
}

/* Checkbox Styles */
.custom-checkbox {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #FFFFFF;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}

/* Hide the default checkbox */
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom checkbox (the box itself) */
.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #000;
    border-radius: 4px;
    border: 2px solid rgba(169, 192, 56, 1);
    transition: background-color 0.3s ease;
}

/* When the checkbox is checked, add a background and change the border */
.custom-checkbox input:checked ~ .checkmark {
    background-color: rgba(169, 192, 56, 1);
    border: 2px solid rgba(169, 192, 56, 1);
}

/* Add a checkmark inside the box when checked */
.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Show the checkmark when the checkbox is checked */
.custom-checkbox input:checked ~ .checkmark::after {
    display: block;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: rgba(169, 192, 56, 0.7);
}

.custom-checkbox:hover {
    color: rgba(169, 192, 56, 1);
}

.register-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sub-title {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

button.register-btn.disabled {
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.7);
}



/* Container for the Terms and Conditions */
.terms-container {
    width: 480px;
    font-family: 'Montserrat', sans-serif;
}

/* Hide the default checkbox */
.toggle-checkbox {
    display: none;
}

/* Header styling */
.terms-header {
    height: 72px;
    background: #000000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    cursor: pointer;
    transition: height 0.3s ease, border-radius 0.3s ease;
    margin: 0;
}

.terms-container.open .terms-header {
    border-radius: 10px 10px 0 0; /* Only round the top corners */
}

/* Hide the default checkbox */
input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom checkbox (the box itself) */
.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #000;
    border-radius: 4px;
    border: 2px solid rgba(169, 192, 56, 1);
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-right: 15px;
}

/* When the checkbox is checked, add a background and change the border */
input[type="checkbox"]:checked + .checkmark {
    background-color: rgba(169, 192, 56, 1);
    border: 2px solid rgba(169, 192, 56, 1);
}

/* Add a checkmark inside the box when checked */
.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Show the checkmark when the checkbox is checked */
input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}

input[type="checkbox"]:hover + .checkmark {
    background-color: rgba(169, 192, 56, 0.7);
}


/* Title styling */
.title {
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #FFFFFF;
    flex-grow: 1;
    text-align: left;
}

/* Arrow styling */
.arrow {
    width: 24px; /* Adjust based on your SVG size */
    height: 24px; /* Adjust based on your SVG size */
    transition: transform 0.3s ease;
}

/* Rotate arrow when checked */
.toggle-checkbox:checked + .terms-header .arrow {
    transform: rotate(180deg);
}

/* Content styling */
.terms-content {
    background: #000000;
    border-radius: 0 0 10px 10px; /* Only round the bottom corners */
    box-sizing: border-box;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #FFFFFF;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    margin: 0; /* Ensure no margin */
}

.terms-paragraph {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    text-align: left;
}

/* Expand content when checked */
.toggle-checkbox:checked ~ .terms-content {
    max-height: 360px !important;
    padding: 0 25px 20px 25px;
}

.arrow-down-agreements {
    width: 20px;
    height: 11px;
    transition: transform 0.3s ease;
}

.terms-container.open .arrow-down-agreements {
    transform: rotate(180deg);
}

.error {
    color: red;
    margin-bottom: 10px;
}




