/* Member Registration Styles */

/* Hizmet Vereceğiniz Kategori – form ile uyumlu Select2 */
#realestate-register-modal .realestate-register-category-wrap {
    margin-bottom: 20px;
}

#realestate-register-modal .realestate-register-category-wrap .select2-container {
    width: 100% !important;
}

#realestate-register-modal .realestate-register-category-wrap .select2-container--default .select2-selection--single {
    border: 1px solid #EEF0F5;
    background-color: #F8F9FC;
    border-radius: 4px;
    height: 34px;
    padding: 0 15px;
}

#realestate-register-modal .realestate-register-category-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
    padding-left: 0;
    font-size: 14px;
    color: #424242;
}

#realestate-register-modal .realestate-register-category-wrap .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #84818A;
    font-size: 14px;
}

#realestate-register-modal .realestate-register-category-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
    right: 10px;
}

#realestate-register-modal .realestate-register-category-wrap .select2-container--default.select2-container--focus .select2-selection--single,
#realestate-register-modal .realestate-register-category-wrap .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-color, #0c3d34);
    outline: none;
    box-shadow: 0 0 0 1px var(--primary-color, #0c3d34);
}

#realestate-register-modal .realestate-register-category-wrap .select2-dropdown {
    border: 1px solid #EEF0F5;
    border-radius: 4px;
}

#realestate-register-modal .realestate-register-category-wrap .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color, #0c3d34);
    color: #fff;
}

/* intl-tel-input - Bayraklı uluslararası telefon girişi (Kurumsal Kayıt) */
#realestate-register-modal #signup-professional .iti {
    width: 100%;
}

#realestate-register-modal #signup-professional .iti input {
    width: 100%;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.alert ul li {
    margin-bottom: 5px;
}

/* Form Button Styles */
.realestate-user-logins .form-submission-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--secondary-color);
    border: none;
    border-radius: 25px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.realestate-user-logins .form-submission-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.realestate-user-logins .form-submission-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Invalid Input Styles */
.realestate-user-logins input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Password Toggle Icon */
.realestate-user-logins-group {
    position: relative;
}

.realestate-user-logins-group .fa-eye,
.realestate-user-logins-group .fa-eye-slash {
    cursor: pointer;
    transition: color 0.3s ease;
}

.realestate-user-logins-group .fa-eye:hover,
.realestate-user-logins-group .fa-eye-slash:hover {
    color: #667eea;
}

/* Loading State */
.realestate-user-logins .form-submission-btn.loading {
    position: relative;
    color: transparent;
}

.realestate-user-logins .form-submission-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .alert {
        font-size: 13px;
        padding: 12px;
    }
}

/* Registration Success Notification Box */
.registration-success-box {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
    animation: slideInFromTop 0.6s ease-out, pulseGlow 2s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.5);
    border: 3px solid #34d399;
}

.registration-success-box .success-icon {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounceIn 0.8s ease-out;
}

.registration-success-box .success-icon i {
    color: #fbbf24;
    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.6));
    animation: iconPulse 1.5s ease-in-out infinite;
}

.registration-success-box h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

.registration-success-box p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
    animation: fadeInUp 0.5s ease-out 0.5s both;
}

.registration-success-box .success-info {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

.registration-success-box .success-info i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.registration-success-box .success-info small {
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    opacity: 0.9;
}

/* Animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(16, 185, 129, 0.5);
    }
    50% {
        box-shadow: 0 10px 60px rgba(16, 185, 129, 0.8);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form submitted overlay */
.form-submitted-overlay {
    position: relative;
    pointer-events: none;
    opacity: 0.3;
}

.form-submitted-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10;
}

/* Hide notification on mobile */
@media (max-width: 991px) {
    .registration-success-box {
        display: none !important;
    }
}

/* Page Success Notification (Persistent at top of page) */
.page-success-notification-wrapper {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    position: relative;
    z-index: 999;
    animation: slideDown 0.5s ease-out;
}

.page-success-notification {
    position: relative;
    padding: 25px 60px 25px 30px;
}

.notification-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.notification-icon {
    flex-shrink: 0;
    font-size: 48px;
    color: #fbbf24;
    animation: bounceIn 0.8s ease-out;
}

.notification-text {
    flex: 1;
    color: white;
}

.notification-text h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.notification-text p {
    font-size: 16px;
    margin: 0 0 12px 0;
    opacity: 0.95;
    line-height: 1.5;
}

.notification-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
}

.notification-info i {
    font-size: 16px;
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .page-success-notification {
        padding: 20px 50px 20px 20px;
    }
    
    .notification-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .notification-text h4 {
        font-size: 20px;
    }
    
    .notification-text p {
        font-size: 14px;
    }
    
    .notification-info {
        display: flex;
        text-align: left;
    }
    
    .notification-close {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}
