/* Simple Login Form Styles */
.login-page-container {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

.login-right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 24px;
    color: #002B5F; /* PRIMARY_COLOR */
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.login-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.login-form-control:focus {
    border-color: #002B5F; /* PRIMARY_COLOR */
    outline: none;
}

.login-remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.login-remember-me {
    display: flex;
    align-items: center;
    color: #333;
}

.login-remember-me input {
    margin-right: 8px;
}

.login-forgot-password {
    color: #002B5F; /* PRIMARY_COLOR */
    text-decoration: none;
    font-weight: 500;
}

.login-forgot-password:hover {
    color: #F78B5A; /* SECONDARY_COLOR */
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #002B5F; /* PRIMARY_COLOR */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background: #F78B5A; /* SECONDARY_COLOR */
}

.login-create-account {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.login-create-account a {
    color: #002B5F; /* PRIMARY_COLOR */
    text-decoration: none;
    font-weight: 500;
}

.login-create-account a:hover {
    color: #F78B5A; /* SECONDARY_COLOR */
    text-decoration: underline;
}

.wishlist-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    border-left: 4px solid #002B5F; /* PRIMARY_COLOR */
}

.wishlist-section h3 {
    font-size: 16px;
    color: #002B5F; /* PRIMARY_COLOR */
    margin-bottom: 8px;
    font-weight: 600;
}

.wishlist-section p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .login-page-container {
        padding: 20px;
    }
    
    .login-right-panel {
        padding: 20px;
    }
    
    .login-container {
        padding: 30px 25px;
    }
}
/* Simple Right Side Panel - Fixed for Mobile */
#loginModal .modal-dialog {
    position: fixed;
    top: 0;
    right: 0;
    margin: 0;
    width: 400px;
    max-width: 90%;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    z-index: 9999; /* Ensure it's above everything */
}

#loginModal.show .modal-dialog {
    transform: translateX(0);
}

#loginModal .modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* Allow scrolling if content is too long */
}

#loginModal .modal-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
}

#loginModal .modal-body {
    padding: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #loginModal .modal-dialog {
        width: 100%;
        max-width: 100%;
        z-index: 9999; /* Very high z-index for mobile */
    }
    
    #loginModal .modal-content {
        border-radius: 0;
    }
    
    /* Ensure modal backdrop covers everything on mobile */
    .modal-backdrop {
        z-index: 9998;
    }
    
    /* Make sure header doesn't overlap on mobile */
    #loginModal .modal-header {
        padding-top: 40px; /* Extra space for mobile status bar */
    }
}

/* Ensure the modal is above all other content */
.modal {
    z-index: 9999 !important;
}

.modal-backdrop {
    z-index: 9998 !important;
}/* Right Side Panel for Both Login and Register Modals */
#loginModal .modal-dialog,
#registerModal .modal-dialog {
    position: fixed;
    top: 0;
    right: 0;
    margin: 0;
    width: 400px;
    max-width: 90%;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    z-index: 9999;
}

#loginModal.show .modal-dialog,
#registerModal.show .modal-dialog {
    transform: translateX(0);
}

#loginModal .modal-content,
#registerModal .modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

#loginModal .modal-header,
#registerModal .modal-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
}

#loginModal .modal-body,
#registerModal .modal-body {
    padding: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #loginModal .modal-dialog,
    #registerModal .modal-dialog {
        width: 100%;
        max-width: 100%;
    }
    
    #loginModal .modal-content,
    #registerModal .modal-content {
        border-radius: 0;
    }
}

/* Ensure modals are above all other content */
.modal {
    z-index: 9999 !important;
}

.modal-backdrop {
    z-index: 9998 !important;
}
/* Right Side Panel for All Modals - Login, Register, Forgot Password */
#loginModal .modal-dialog,
#registerModal .modal-dialog,
#forgotPasswordModal .modal-dialog {
    position: fixed;
    top: 0;
    right: 0;
    margin: 0;
    width: 400px;
    max-width: 90%;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    z-index: 9999;
}

#loginModal.show .modal-dialog,
#registerModal.show .modal-dialog,
#forgotPasswordModal.show .modal-dialog {
    transform: translateX(0);
}

#loginModal .modal-content,
#registerModal .modal-content,
#forgotPasswordModal .modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

#loginModal .modal-header,
#registerModal .modal-header,
#forgotPasswordModal .modal-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
}

#loginModal .modal-body,
#registerModal .modal-body,
#forgotPasswordModal .modal-body {
    padding: 20px;
}

/* Fix backdrop stacking issue */
.modal-backdrop {
    z-index: 9998 !important;
}

.modal {
    z-index: 9999 !important;
}

/* Ensure only one backdrop exists */
.modal-backdrop ~ .modal-backdrop {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #loginModal .modal-dialog,
    #registerModal .modal-dialog,
    #forgotPasswordModal .modal-dialog {
        width: 100%;
        max-width: 100%;
    }
    
    #loginModal .modal-content,
    #registerModal .modal-content,
    #forgotPasswordModal .modal-content {
        border-radius: 0;
    }
    
    #loginModal .modal-header,
    #registerModal .modal-header,
    #forgotPasswordModal .modal-header {
        padding-top: 40px;
    }
}