.register {
    width: 100%;
    background-color: #141922;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    padding-bottom: 110px;
}

.register h1 {
    font-size: 30px !important;
    margin: 34px 0 24px !important;
    color: #ffffff !important;
}

.register > p {
    font-size: 14px;
    color: #b3b3b3;
    margin: 0 0 15px;
}

.register > p > a {
    font-size: 14px !important;
    color: var(--primary-color); !important;
}

.register-form {
    position: relative;
    width: 100%;
    max-width: 365px;
    color: #ffffff;
    box-sizing: border-box;
    /* padding-bottom: 120px !important; */
}

/* status input */
.input-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 14px;
}

.input-wrapper > i {
    position: absolute;
    left: 14px;
    top: 9px;
    color: #eae8e8;
    font-size: 16px;
    pointer-events: none;
    line-height: 20px;
}

.error-icon {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #f87171;
    color: #f87171;
    background-color: transparent;
    font-size: 5px;
    text-align: center;
    line-height: 18px;
    display: none;
}

.error-icon i {
    font-size: 8px;
}

.input-wrapper.error .error-icon {
    display: block;
}

.input-wrapper.error .input-primary {
    border: 1px solid #f87171 !important;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    color: #ccc;
    font-size: 12px !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    color: #ccc;
    font-size: 12px;
}

.input-primary {
    width: 100%;
    height: 44px;
    padding: 12px 14px 12px 40px !important;
    background-color: #1f2635 !important;
    color: #ccc;
    border: none !important;
    border-radius: 0.25rem !important;
    transition: border 0.2s ease;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
}

.input-primary::placeholder {
    color: #626262 !important;
    font-size: 14px;
}

.input-primary:focus {
    border: 1px solid orange !important;
    outline: none !important;
}

.input-primary.error {
    border: 1px solid #f87171 !important;
}

.input-primary.valid {
    border: none !important;
}

.text-error {
    color: #f87171;
    font-size: 12px;
    margin-top: 4px;
}

/* end input */
.btn-register {
    width: 100%;
    padding: 10px 0;
    background-color: var(--primary-color);
    border: none;
    color: #212529;
    font-weight: 600;
    font-size: 16px;
    border-radius: 0.25rem !important;
    text-align: center;
}

.btn-register:hover {
    background-color: #ffbb43;
}

.btn-register:focus {
    outline: none;
}

.modal-register-error {
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

/* Áp dụng style input-primary cho select2 container */
.select2-container--default .select2-selection--single {
    background-color: #1f2635 !important;
    color: #ccc !important;
    height: 44px !important;
    border: none !important;
    border-radius: 0.25rem !important;
    padding-left: 40px !important;
    display: flex;
    align-items: center;
}

/* Focus */
.select2-container--default.select2-container--focus
    .select2-selection--single {
    border: 1px solid orange !important;
    outline: none !important;
}

/* Text */
.select2-selection__rendered {
    color: #ccc !important;
    line-height: normal !important;
}

/* Xóa icon mũi tên mặc định nếu muốn dùng background riêng */
.select2-selection__arrow {
    display: none;
}

/* Dropdown list */
.select2-results__option {
    background-color: #1f2635 !important;
    color: #ccc !important;
}

.select2-results__option--highlighted {
    background-color: #2e3b55 !important;
    color: #fff !important;
}

/* Error border nếu có */
.input-wrapper.error .select2-selection--single {
    border: 1px solid #f87171 !important;
}

.divider {
    margin: 6px 0 20px;
    border-top: 1px solid #373b43;
}

@media only screen and (max-width: 600px) {
    .register-form {
        width: 90%;
    }
}

@media only screen and (max-width: 576px) {
    .register-form {
        width: 100%;
        max-width: 95%;
    }
}

.btn-go-register {
    cursor: pointer;
}

.reset-otp-register,
.btn-send-warning {
    padding-top: 0.4rem;
    padding-bottom: 0.5rem;
}

.form-row .row {
    max-width: 334px !important;
}

.button-wrapper {
    margin-bottom: 14px;
}

.button-wrapper button {
    color: #ced4da;
    font-size: 14px;
    border: 1px solid #303b54 !important;
    height: 38px;
    width: 100%;
    text-align: center;
}

.button-wrapper .active {
    background-color: #303b54;
}

.button-wrapper .btn:hover {
    background-color: inherit !important;
    color: inherit !important;
    border-color: inherit !important;
    box-shadow: none !important;
    cursor: default;
}

/* radio */
input[type="radio"],
input[type="checkbox"] {
    display: inline;
}

input[name="phone"] {
    padding-left: 12px;
}

.custom-radio {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin-right: 8px;
    background-color: transparent;
    display: inline-blockblock !important;
}

.custom-radio:checked::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 4px;
}

label {
    color: #b3b3b3;
    font-weight: normal;
    cursor: pointer;
    font-size: 14px;
}

.form-check-input {
    accent-color: orange;
    width: 18px;
    height: 18px;
    margin-left: 0;
    margin-top: 0;
}

.form-check-label {
    margin-left: 14px;
    color: #ffffff;
}

.form-check-label a {
    font-size: 14px !important;
    color: #ffa300 !important;
}

.form-check-label a:hover {
    text-decoration: underline;
    color: #ffa300 !important;

}
.form-check-label a:focus {
    outline: none;
    text-decoration: none;
    color: #ffa300 !important;
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px;
    height: 18px;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    background-color: #141922;
    cursor: pointer;
    position: relative;
    margin-top: 0;
}

.custom-checkbox:checked {
    background-color: var(--primary-color);
}

.custom-checkbox:checked::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #141922;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.custom-radio:focus,
.custom-checkbox:focus {
    outline: none;
    box-shadow: 0 0 4px 2px rgba(255, 163, 0, 0.6);
}

.btn-login-select:focus,
.btn-phone:focus {
    border: none;
    outline: none;
    box-shadow:none;
}

.btn-phone {
    background-color: #1f2635;
    border: none;
    color: #ccc;
}
.btn-phone:hover {
    background-color: #1f2635;
    border: none;
    color: #ccc;
}
