/* WP Login Register Popup Styles */

.wp-login-register-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: popupSlideIn 0.3s ease-out;
}

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

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
}

.popup-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.popup-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tab-button:hover {
    color: #374151;
    background: #f9fafb;
}

.tab-button.active {
    color: #3b82f6;
    background: #f0f9ff;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #3b82f6;
}

.popup-body {
    padding: 25px;
}

.auth-form {
    display: none;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
}

.btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.form-links {
    text-align: center;
    margin-top: 15px;
}

.form-links a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.form-links a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.popup-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.popup-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.popup-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.user-info span {
    color: #374151;
    font-weight: 500;
}

/* Loading Animation */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .popup-header {
        padding: 15px 20px;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .popup-title {
        font-size: 20px;
    }
}

/* Custom Button Styles */
/*#open-login-popup {*/
/*    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
/*    border: none;*/
/*    color: white;*/
/*    padding: 12px 24px;*/
/*    border-radius: 8px;*/
/*    font-weight: 600;*/
/*    cursor: pointer;*/
/*    transition: all 0.3s ease;*/
/*    text-decoration: none;*/
/*    display: inline-block;*/
/*}*/
#open-login-popup {
    background-color: #002244;
    border-color: #002244;
    color: #ffffff;
    font-size: 14px;
    line-height: 18px;
    box-shadow: 0px 8px 15px rgb(0 34 68 / 32%);
    transition: all 0.3s ease 0s;
    width: auto;
}

#open-login-popup:hover {
    transform: translateY(-2px);
    /*box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);*/
}

#logout-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Menu Style Login/Register */
.menu-item #open-login-popup {
    background: none;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    border: none;
    box-shadow: none;
}

.menu-item #open-login-popup:hover {
    transform: none;
    box-shadow: none;
    background-color: #06b1ac !important;
    color: #002244 !important;
}

.menu-item #logout-btn {
    background: none;
    color: inherit;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    border: none;
    width: 100%;
    text-align: left;
}

.menu-item #logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: none;
}

/* Dropdown menu styling for logged-in users */
.menu-item.dropdown .dropdown-menu {
    min-width: 200px;
    border: 1px solid #e5e7eb;
    border-radius: 0px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        background-color: #002244;
    color: #ffffff;
    padding-top: 0;
    padding-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.menu-item.dropdown .dropdown-menu .nav-link {
    padding: 0.5rem 1rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.menu-item.dropdown .dropdown-menu .nav-link:last-child {
    border-bottom: none;
}

.menu-item.dropdown .dropdown-menu .nav-link:hover {
    background: #f9fafb;
    color: #1f2937;
}

/* Welcome message styling */
.menu-item .nav-link span {
    font-style: italic;
    color: #6b7280;
    font-size: 0.9em;
}