/* Register Modal Styles */

.register_modal_content {
    border-radius: 24px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.register_close_btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register_close_btn:hover {
    background: #ffffff;
    transform: rotate(90deg);
}

.register_close_btn i {
    font-size: 20px;
    color: #333;
}

/* Left Section - Branding */
.register_left_section {
    background: linear-gradient(135deg, #43c59e 0%, #3ab58c 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 700px;
}

.register_branding {
    color: #ffffff;
}

.register_logo {
    max-width: 150px;
    margin-bottom: 32px;
    filter: brightness(0) invert(1);
}

.register_welcome_title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.register_welcome_description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0;
}

.register_illustration {
    text-align: center;
    margin-top: 40px;
}

.register_illustration img {
    max-width: 100%;
    height: auto;
}

/* Right Section - Form */
.register_form_section {
    padding: 60px 50px;
    background: #ffffff;
    max-height: 700px;
    overflow-y: auto;
}

.register_form_section::-webkit-scrollbar {
    width: 8px;
}

.register_form_section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.register_form_section::-webkit-scrollbar-thumb {
    background: #43c59e;
    border-radius: 10px;
}

.register_form_section::-webkit-scrollbar-thumb:hover {
    background: #3ab58c;
}

.register_form_header {
    margin-bottom: 24px;
}

.register_title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

/* User Type Tabs */
.user_type_tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    padding: 0;
    list-style: none;
    border-bottom: 2px solid #e0e0e0;
}

.tab_item {
    flex: 1;
}

.tab_button {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab_button:hover {
    color: #43c59e;
}

.tab_button.active {
    color: #43c59e;
    border-bottom-color: #43c59e;
}

/* Register Form */
.register_form .form-group {
    margin-bottom: 20px;
}

.register_form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.register_form input[type="text"],
.register_form input[type="email"],
.register_form input[type="tel"],
.register_form input[type="password"],
.register_form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
}

.register_form input:focus,
.register_form select:focus {
    outline: none;
    border-color: #43c59e;
    box-shadow: 0 0 0 4px rgba(67, 197, 158, 0.1);
}

.register_form input::placeholder {
    color: #999;
}

/* Form Row Dual (First Name + Last Name) */
.form_row_dual {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

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

/* Password Field with Eye Icon */
.password_input_wrapper {
    position: relative;
}

.password_input_wrapper input {
    padding-right: 45px;
}

.password_input_wrapper .field_icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.password_input_wrapper .field_icon:hover {
    color: #43c59e;
}

/* Custom Checkbox */
.custom_checkbox_wrapper {
    margin: 20px 0;
}

.custom_checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.custom_checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.custom_checkbox input:checked ~ .checkmark {
    background: #43c59e;
    border-color: #43c59e;
}

.custom_checkbox input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox_label {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.checkbox_label a {
    color: #43c59e;
    text-decoration: none;
    font-weight: 600;
}

.checkbox_label a:hover {
    text-decoration: underline;
}

/* File Upload */
.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.upload-btn-wrapper .btn {
    width: 100%;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn-wrapper .btn:hover {
    border-color: #43c59e;
    background: #e8f5f1;
    color: #43c59e;
}

.upload-btn-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.identity_proof {
    max-width: 100px;
    max-height: 100px;
    margin-bottom: 10px;
}

/* Submit Button */
.register_submit_btn {
    width: 100%;
    padding: 14px 32px;
    background: linear-gradient(135deg, #43c59e 0%, #3ab58c 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.register_submit_btn:hover {
    background: linear-gradient(135deg, #3ab58c 0%, #32a07d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 197, 158, 0.3);
    gap: 12px;
}

.register_submit_btn:active {
    transform: translateY(0);
}

/* Login Prompt */
.login_prompt {
    text-align: center;
    margin-top: 24px;
    font-size: 0.95rem;
    color: #666;
}

.login_prompt a {
    color: #43c59e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login_prompt a:hover {
    color: #3ab58c;
}

/* Phone Input */
.input-group {
    position: relative;
}

.input-group .form-control {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 991px) {
    .register_form_section {
        padding: 40px 30px;
        max-height: none;
    }

    .register_title {
        font-size: 1.75rem;
    }

    .register_welcome_title {
        font-size: 2rem;
    }

    .form_row_dual {
        flex-direction: column;
        gap: 0;
    }

    .tab_button {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}

@media (max-width: 767px) {
    .register_form_section {
        padding: 30px 20px;
    }

    .register_title {
        font-size: 1.5rem;
    }

    .user_type_tabs {
        flex-direction: column;
    }

    .tab_button {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
    }

    .tab_button.active {
        border-bottom-color: transparent;
        border-left-color: #43c59e;
    }

    .register_form input[type="text"],
    .register_form input[type="email"],
    .register_form input[type="tel"],
    .register_form input[type="password"],
    .register_form select {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .register_submit_btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .register_modal_content {
        border-radius: 16px;
    }

    .register_close_btn {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
    }

    .register_form_section {
        padding: 24px 16px;
    }

    .register_title {
        font-size: 1.35rem;
    }

    .checkbox_label {
        font-size: 0.8rem;
    }
}

/* OTP Modal Styles */
.otp_modal_content {
    border-radius: 24px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.otp_modal_body {
    padding: 60px 40px;
    background: #ffffff;
    text-align: center;
}

.otp_header {
    margin-bottom: 32px;
}

.otp_logo {
    max-width: 120px;
    margin-bottom: 24px;
}

.otp_title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
}

.otp_form {
    max-width: 400px;
    margin: 0 auto;
}

.otp_description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
}

.otp_label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-align: left;
}

.otp_inputs_container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.otp-input {
    width: 60px;
    height: 60px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #43c59e;
    box-shadow: 0 0 0 4px rgba(67, 197, 158, 0.1);
}

.otp_resend_wrapper {
    margin-bottom: 24px;
}

.resend-link {
    color: #43c59e;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.resend-link:hover {
    color: #3ab58c;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .otp_modal_body {
        padding: 40px 24px;
    }

    .otp_title {
        font-size: 1.5rem;
    }

    .otp_inputs_container {
        gap: 8px;
    }

    .otp-input {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 575px) {
    .otp_modal_body {
        padding: 32px 20px;
    }

    .otp_logo {
        max-width: 100px;
    }

    .otp_title {
        font-size: 1.35rem;
    }

    .otp_inputs_container {
        gap: 6px;
    }

    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}
