/* ============================================
   Import Main Styles
   ============================================ */
@import url('style.css');

/* ============================================
   Background Image for Register Page
   ============================================ */
.main-container {
    background-image: url('../../images/register-background.png'); /* صورة الخلفية للتسجيل */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* overlay أسود شفاف خفيف */
    z-index: -1;
}

/* ============================================
   Register Section
   ============================================ */
.register-section {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.register-card {
    background: rgba(0, 0, 0, 0.25); /* خلفية سوداء شفافة */
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    animation: fadeInUp 1s ease 0.3s both;
    backdrop-filter: blur(10px); /* تأثير blur خفيف */
    border: 1px solid rgba(255, 255, 255, 0.1); /* حدود خفيفة */
}

.register-header {
    margin-bottom: 2.5rem;
}

.register-logo {
    max-width: 150px;
    height: 110px;
    margin-bottom: 1rem;
    filter: none;
}

.register-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.register-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
    text-align: right;
}

/* ============================================
   Account Type Tabs
   ============================================ */
.account-type-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.tab-btn.active {
    background: #81C104;
    color: var(--text-light);
    box-shadow: 0 3px 10px rgba(129, 193, 4, 0.4);
}

.tab-btn.active:hover {
    background: #6fa803;
}

/* ============================================
   Register Form
   ============================================ */
.register-form {
    text-align: right;
    display: none;
}

.register-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px; /* زيادة الاستدارة */
    background: rgba(0, 0, 0, 0.4); /* خلفية سوداء شفافة */
    color: var(--text-light); /* نص أبيض */
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.form-control:focus {
    outline: none;
    border-color: #81C104;
    background: rgba(0, 0, 0, 0.6); /* خلفية أغمق عند التركيز */
    box-shadow: 0 0 0 3px rgba(129, 193, 4, 0.2);
    color: var(--text-light);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6); /* placeholder أبيض شفاف */
    font-size: 0.9rem;
}

.input-group {
    display: flex;
}

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-number {
    width: 100%;
    padding-right: 110px;
}

.phone-code-select {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 4px);
    width: 100px;
    padding: 0 0.5rem 0 1.5rem;
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
    border: none;
    border-radius: 40px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23ffffff' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.5rem center;
    z-index: 10;
    text-align: right;
}

.phone-code-select:focus {
    outline: none;
    background-color: transparent !important;
    background: transparent !important;
}

.phone-code-select:hover {
    background-color: transparent !important;
    background: transparent !important;
}

.phone-code-select option {
    background: rgba(0, 0, 0, 0.95);
    color: var(--text-light);
    padding: 0.5rem;
}

/* Select2 Custom Styling for Phone Code Select */
.phone-input-wrapper .select2-container {
    position: absolute !important;
    right: 2px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 105px !important;
    z-index: 10 !important;
}

.phone-input-wrapper .select2-container--default .select2-selection--single {
    height: calc(100% - 4px) !important;
    min-height: auto !important;
    padding: 0 0.5rem 0 1.5rem !important;
    border: none !important;
    border-radius: 40px !important;
    background: transparent !important;
    backdrop-filter: none !important;
    display: flex !important;
    align-items: center !important;
}

.phone-input-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-light) !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    font-family: 'Cairo', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'EmojiOne Color', 'Android Emoji', sans-serif !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-emoji: emoji !important;
    -webkit-font-feature-settings: "liga" off, "calt" off !important;
    font-feature-settings: "liga" off, "calt" off !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.phone-input-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered span,
.phone-input-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered div,
.phone-input-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered * {
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove blue background from selection */
.phone-input-wrapper .select2-container--default .select2-selection--single {
    background: transparent !important;
    background-color: transparent !important;
}

.phone-input-wrapper .select2-container--default.select2-container--open .select2-selection--single {
    background: transparent !important;
    background-color: transparent !important;
}

.phone-input-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

.phone-input-wrapper .select2-container--default.select2-container--open .select2-selection--single {
    background: transparent !important;
    background-color: transparent !important;
}

.phone-input-wrapper .select2-dropdown {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px);
    margin-top: 5px !important;
}

.phone-input-wrapper .select2-container--default .select2-search--dropdown {
    display: block !important;
    padding: 0.5rem !important;
}

.phone-input-wrapper .select2-container--default .select2-search--dropdown .select2-search__field {
    display: block !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: var(--text-light) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    padding: 0.5rem !important;
    font-family: 'Cairo', sans-serif !important;
    text-align: right !important;
    width: 100% !important;
    font-size: 0.9rem !important;
}

.phone-input-wrapper .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none !important;
    border-color: #81C104 !important;
    box-shadow: 0 0 0 2px rgba(129, 193, 4, 0.2) !important;
}

.phone-input-wrapper .select2-container--default .select2-search--dropdown .select2-search__field::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.phone-input-wrapper .select2-container--default .select2-results__option {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--text-light) !important;
    padding: 0.75rem 1rem !important;
    text-align: right !important;
    font-size: 0.9rem !important;
    font-family: 'Cairo', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'EmojiOne Color', 'Android Emoji', sans-serif !important;
    white-space: nowrap !important;
    font-variant-emoji: emoji !important;
    -webkit-font-feature-settings: "liga" off, "calt" off !important;
    font-feature-settings: "liga" off, "calt" off !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.phone-input-wrapper .select2-container--default .select2-results__option span,
.phone-input-wrapper .select2-container--default .select2-results__option div,
.phone-input-wrapper .select2-container--default .select2-results__option * {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline !important;
    box-shadow: none !important;
    outline: none !important;
}

.phone-input-wrapper .select2-container--default .select2-results__option {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.phone-input-wrapper .select2-container--default .select2-results__option[aria-selected="true"] {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--text-light) !important;
}

.phone-input-wrapper .select2-container--default .select2-results__option--highlighted[aria-selected],
.phone-input-wrapper .select2-container--default .select2-results__option--highlighted,
.phone-input-wrapper .select2-container--default .select2-results__option--selectable.select2-results__option--highlighted {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--text-light) !important;
}

/* Remove any blue backgrounds from Select2 */
.phone-input-wrapper .select2-container--default .select2-results__option[class*="highlight"],
.phone-input-wrapper .select2-container--default .select2-results__option[class*="selected"],
.phone-input-wrapper .select2-container--default .select2-results__option:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--text-light) !important;
}

/* Remove all backgrounds from Select2 options - comprehensive */
.phone-input-wrapper .select2-container--default .select2-results__option,
.phone-input-wrapper .select2-container--default .select2-results__option *,
.phone-input-wrapper .select2-container--default .select2-results__option::before,
.phone-input-wrapper .select2-container--default .select2-results__option::after {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single {
    height: 100% !important;
    padding: 0.7rem 1.5rem 0.7rem 0.5rem !important;
    font-size: 0.9rem !important;
}

/* Select2 Custom Styling */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: auto !important;
    min-height: 45px !important;
    padding: 0.7rem 2.5rem 0.7rem 1rem !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(5px);
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-light) !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    font-size: 1rem !important;
    font-family: 'Cairo', sans-serif !important;
    text-align: right !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 12px !important;
    top: 0 !important;
    width: 20px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-light) transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
    margin-top: -3px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--text-light) transparent !important;
    border-width: 0 5px 6px 5px !important;
    margin-top: -3px !important;
}

.select2-container--default .select2-results__option {
    background: rgba(0, 0, 0, 0.9) !important;
    color: var(--text-light) !important;
    padding: 0.75rem 1rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(129, 193, 4, 0.3) !important;
    color: var(--text-light) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background: rgba(0, 0, 0, 0.9) !important;
    color: var(--text-light) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    padding: 0.5rem !important;
}

.select2-dropdown {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px);
}

.select2-container--default .select2-selection--single:focus {
    border-color: #81C104 !important;
    outline: none !important;
}

.input-group .form-control:focus {
    border-right: 2px solid #81C104;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    z-index: 10;
}

.password-toggle:hover {
    color: #81C104;
}

.password-toggle i {
    font-size: 1.1rem;
}

.btn-register {
    width: 100%;
    background: #81C104;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(129, 193, 4, 0.4);
    text-transform: none;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn-register:hover {
    background: #6fa803;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(129, 193, 4, 0.6);
    color: var(--text-light);
}

.btn-register:active {
    transform: translateY(-1px);
}

.login-link {
    margin-top: 1.5rem;
    text-align: center;
}

.login-link p {
    color: var(--text-light);
    font-size: 0.95rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.login-link a {
    color: #81C104;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.login-link a:hover {
    color: #6fa803;
    text-decoration: underline;
}

/* ============================================
   Divider
   ============================================ */
.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.divider-text {
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Google Login Button
   ============================================ */
.btn-google-login {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 1px;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-top: 1rem;
}

.btn-google-login:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.btn-google-login:active {
    transform: translateY(0);
}

.google-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ============================================
   File Upload
   ============================================ */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 3rem 0.7rem 1rem;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
    text-align: right;
    backdrop-filter: blur(5px);
    position: relative;
}

.file-upload-label:hover {
    border-color: #81C104;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
}

.file-upload-label i {
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
    color: #81C104;
}

.file-upload-label span {
    flex: 1;
    text-align: right;
}

.file-input:focus + .file-upload-label {
    border-color: #81C104;
    box-shadow: 0 0 0 3px rgba(129, 193, 4, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.file-input:valid + .file-upload-label {
    border-color: #81C104;
    background: rgba(129, 193, 4, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.contact-phone:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #81C104;
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-3px);
}

.contact-phone i {
    font-size: 1.3rem;
    color: #81C104;
}
.header-title{
    color: #81C104;

    
}
/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .register-card {
        padding: 2rem 1.5rem;
    }

    .register-main-title {
        font-size: 2rem;
    }

    .register-subtitle {
        font-size: 1.1rem;
    }

    .register-logo {
        max-width: 120px;
    }

    .contact-phone {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .register-card {
        padding: 1.5rem 1rem;
    }

    .register-main-title {
        font-size: 1.8rem;
    }

    .register-subtitle {
        font-size: 1rem;
    }

    .form-control {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }

    .btn-register {
        font-size: 1.1rem;
        padding: 0.875rem 1.5rem;
    }

    .contact-phone {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
}
